Color Code Converter (HEX, RGB, HSL, CMYK + Eyedropper)

Type into any field — HEX, RGB, HSL, HSV or CMYK — and the rest update instantly. Includes an image eyedropper with magnifier, a screen color picker, a WCAG contrast checker and nearest color names.

#4F46E5rgb(79, 70, 229)
CSS color nameΔE 19.8
Korean color name (approx.)ΔE 26.5
HEX
RGB
HSL
HSV (HSB)
CMYK

CMYK here is a simple profile-free approximation. For print, convert again with the profile your printer uses.

Eyedropper

This browser has no screen eyedropper (desktop Chrome and Edge do). Upload an image and pick from it instead.

Drop an image here or click to browse

Tap any point of a photo or screenshot to grab its color. Images never leave your browser.

Contrast check (WCAG)

Text color (the color above)
#4F46E5
#FFFFFF
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Contrast 6.28:1
Normal textAA PassAAA Fail
Large text (24px, or 18.7px bold)AA PassAAA Pass

#4F46E5 — on white 6.28:1 · on black 3.33:1

Need a matching set of colors? Build one in the color palette generator.

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.