- What is the difference between HEX, RGB, and HSL color formats?
- HEX is a 6-digit hexadecimal code (e.g. #3b82f6) used in CSS and HTML. RGB (Red, Green, Blue) uses three 0–255 values. HSL (Hue, Saturation, Lightness) uses a 0–360 degree hue angle and percentage-based saturation and lightness — it is more intuitive for creating color variations.
- When should I use HSL instead of RGB?
- HSL is ideal when you want to create color variations programmatically. Changing only the lightness value creates tints and shades of the same hue. Changing saturation creates muted or vivid versions. RGB requires calculating all three channels to make similar adjustments.
- What is CMYK and when is it used?
- CMYK (Cyan, Magenta, Yellow, Key/Black) is the color model used in print and physical media. Digital screens use RGB; printers use CMYK. When preparing graphics for print, use CMYK values to ensure colors print accurately since some RGB colors are outside the printable gamut.
- Why do some colors look different on screen vs. in print?
- Screens emit light (additive color model), while print reflects light (subtractive model). Bright, saturated RGB colors — especially electric blues, greens, and purples — often cannot be reproduced in CMYK printing and are "out of gamut". They will print as a muted approximation.
- How do I find the HEX code of a color on a website?
- Use your browser's DevTools (F12 → Inspector → click the colored swatch next to any CSS property). You can also use a browser extension like ColorZilla to eyedropper-pick any color on the page and get its HEX, RGB, and HSL values.
- What does opacity or alpha do and how do I add it?
- Alpha controls transparency (0 = fully transparent, 1 = fully opaque). In CSS, use rgba(59, 130, 246, 0.5) for semi-transparent RGB or #3b82f680 for 50% transparent HEX (the last two hex digits are the alpha channel). This tool converts between the opaque formats.
- What is the CSS custom property format and when do I use it?
- CSS custom properties (variables) use the syntax --color-name: #3b82f6; defined in :root {} and referenced with var(--color-name). They enable consistent theming across a stylesheet and make global color changes a one-line update. The converter outputs a ready-to-paste CSS variable declaration.