Color tools
- Contrast checkerWCAG AA / AAA
- Palette generatorRandom and harmony palettes
- Gradient generatorCSS linear, radial, conic
- Image color pickerPick colors from a photo
- Color mixerBlend two colors
- Shades generatorTints, shades, tones
- Color name finderNearest CSS name
- HEX to RGBConvert hex codes
- RGB to HEXConvert RGB values
- CSS color namesAll 148 keywords
- Web-safe colorsThe 216-color palette
Browse colors by family
- Red colorswarm, high-energy hues from scarlet to crimson
- Orange colorswarm hues between red and yellow, from coral to amber
- Yellow colorsbright hues from gold to lemon and olive
- Green colorshues from chartreuse through emerald to spring green
- Cyan & teal colorscool blue-green hues: teal, turquoise, aqua
- Blue colorscool hues from sky blue to navy
- Purple colorshues between blue and red: violet, indigo, lavender
- Pink & magenta colorsmagenta, rose and pink hues
- Brown colorsdark, low-lightness oranges and reds: tan, chocolate, sienna
- Gray colorsnear-neutral colors with little or no saturation
How the conversions work
HEX → RGB: split the six digits into three pairs and read each as a base-16 number (00 = 0, FF = 255). RGB → HSL: scale channels to 0–1, take max and min; lightness = (max + min) / 2, saturation = (max − min) / (1 − |2L − 1|), and the hue angle depends on which channel is largest. RGB → CMYK: K = 1 − max(R, G, B), then C = (1 − R − K) / (1 − K), and likewise for M and Y.
Worked example: #E11D48
E1 = 225, 1D = 29, 48 = 72 → rgb(225, 29, 72). Max 0.882, min 0.114 → L = 49.8%, S = 76.5%, hue = 345° → hsl(345, 77%, 50%).
Which format should I use?
| Format | Best for |
|---|---|
| HEX | CSS, design handoff, compact storage |
| RGB | Screens, canvas, transparency with rgb(… / 50%) |
| HSL | Adjusting lightness or building scales by hand |
| HSV/HSB | Color pickers in design apps |
| CMYK | Print (a naive conversion; printers use ICC profiles) |
| LAB | Measuring perceived difference (ΔE) |