Convert from any format
Edit any row — HEX, RGB, HSL, HSV (HSB) or CMYK — and every other format follows. The top box accepts anything you paste: #4F46E5, rgb(79 70 229), hsl(243 75% 59%) or a CSS name like tomato. Each row has a copy button that gives you a CSS-ready string.
For example, #4F46E5 is rgb(79, 70, 229), hsl(243°, 75%, 59%), hsv(243°, 69%, 90%) and cmyk(66%, 69%, 0%, 10%).
Eyedroppers
- From an image: upload a photo or screenshot and click any point to grab that pixel. A magnifier shows the surrounding 11 × 11 pixels; on a phone, press and drag, then lift your finger to pick. Images never leave your browser.
- From the screen: in desktop Chrome and Edge, Pick from screen uses the EyeDropper API to sample any colour on your display, even outside the browser. Safari, Firefox and mobile browsers do not support it yet.
WCAG contrast check
The checker applies the WCAG 2 formula to your text and background colours. Normal text needs 4.5:1 for AA and 7:1 for AAA; large text (24px, or 18.7px bold) needs 3:1 for AA. Grey #777777 on white comes out at 4.47:1, just short of AA for body text. Ratios are truncated rather than rounded, so a colour that fails is never shown as passing.
Good to know
- CMYK is an approximation. Exact print values depend on the ICC profile your printer uses; treat these numbers as a design reference and confirm with your print shop.
- Nearest names come from the 147 CSS named colours, matched by perceptual distance (ΔE in CIELAB).
For full colour schemes try the color palette generator, for smooth blends the CSS gradient generator, and for a bit of fun the personal color test.