Color Converter

Convert between 16+ color spaces instantly. HEX, RGB, HSL, CMYK, OKLCH, LAB, Display P3 and more — with accessibility checks, shade scales, and developer exports. Press R for random.

HEX

Shade Scale (OKLCH)

Color Mixing

#4F46E5
mix 50%
0% (Color A)100% (Color B)

Blended Result at 50%

Interpolation Comparison

srgb
oklab
lab

Notice how OKLab avoids the "muddy gray" midpoints common in sRGB interpolation.

#4F46E5Click any value below to copy

White on color

Body text sample

Black on color

Body text sample

Badge

Accessibility

WCAG 2.1 Contrast Ratios

On White (normal text)
1.91 AA AAA
On White (large text)
1.91 AA AAA
On Black (normal text)
11.00 AA AAA
On Black (large text)
11.00 AA AAA

Custom Background Check

1.91:1FAIL

Color on BG

BG on Color

APCA Advanced Contrast

37.2%On White
76.8%On Black

Color Blindness Simulation

Normal
prot.
deuter.
trit.

Compare Colors

#4F46E5
A
B

Text A on B

Text B on A

Delta-E (CIEDE2000)

55.67

Very different

Clearly distinct colors

Contrast Ratio

2.48:1
AA Large AA AAA

Color Blindness Simulation

Normal
prota.
deute.
trita.

History & Favorites

Colors you convert will appear here

Understanding Color Spaces

HEX & RGB

The foundation of web colors. HEX is a compact notation for RGB values. RGB defines colors by mixing red, green, and blue light from 0-255.

HSL & HSV

Cylindrical color models that separate hue, saturation, and lightness/value. More intuitive for designers than RGB but not perceptually uniform.

OKLCH & OKLab

Modern perceptually uniform color spaces. OKLCH uses Lightness, Chroma, and Hue — ideal for creating accessible color palettes and smooth gradients.

CMYK

Subtractive color model used in print. Defines colors by Cyan, Magenta, Yellow, and Key (black) ink percentages. Essential for print design workflows.

CIE LAB & LCH

Device-independent color spaces based on human perception. LAB uses Lightness, a (green-red axis), b (blue-yellow axis). LCH is its polar form.

Display P3 & Wide Gamut

Wide-gamut color spaces that represent colors beyond sRGB. Display P3 is supported by modern Apple devices, HDR monitors, and CSS Color Level 4.

Frequently Asked Questions

What is the difference between HEX and RGB?

They represent the same information differently. HEX uses hexadecimal notation (#FF6600), while RGB uses decimal values (rgb(255, 102, 0)). Both define colors by their red, green, and blue channel intensities.

Why should I use OKLCH over HSL?

OKLCH is perceptually uniform, meaning that colors with the same lightness value actually appear equally bright to the human eye. HSL's lightness is mathematically calculated and doesn't account for human perception, leading to inconsistent palettes.

How accurate is the CMYK conversion?

Our converter uses a standard mathematical RGB-to-CMYK formula suitable for digital previews. For production print work, ICC profile-based conversions are recommended as they account for specific ink and paper characteristics.

What is CSS Color Level 4?

CSS Color Level 4 introduces new color functions like oklch(), oklab(), lab(), lch(), and color() that support wide-gamut colors and perceptually uniform manipulations. It's supported in all modern browsers.

Command Palette

Search for a command to run...