#FF7A59
Aa
21: 1
This color tool lets you pick a color and get it instantly as HEX, RGB, CSS color name and roughly calculated CMYK, and under “More formats” also as HSL, HWB, HSV, OKLCH and OKLab. It checks the contrast against a background per WCAG 2.1, builds matching palettes and color scales, creates CSS gradients and shows how people with color vision deficiency see your colors. Everything is calculated in your browser; nothing is sent.
Type the HEX code, for example #FF7A59, at the top. The tool instantly shows RGB, the nearest CSS color name and CMYK, and under “More formats” also HSL, HWB, HSV, OKLCH and OKLab. Every value has a copy button.
Under WCAG 2.1, normal text needs at least 4.5:1 (level AA), large text as well as buttons and graphics 3:1. The stricter level AAA requires 7:1 or 4.5:1. The tool shows the ratio and, at the press of a button, brings your color to the target by changing only its lightness.
OKLCH is a color space built around perception: the same lightness L also looks equally light. In HSL, by contrast, yellow glows while blue looks dark. Since CSS Color 4, OKLCH can be written directly in CSS.
It is only a simple conversion from RGB. Real printing needs a color profile such as FOGRA39 and software that applies it.
Under “Palette” you choose a harmony such as complementary, analogous or triadic, or a light-to-dark scale. A click adopts a color; you can export as CSS variables, JSON or a plain list.
Mixed in sRGB, gradients between opposite colors such as blue and yellow turn dull in the middle. Mixing in OKLab or OKLCH (CSS Color 4) keeps the colors vivid; a sRGB line above it serves as a fallback for older browsers.
It uses the model by Machado, Oliveira and Fernandes (2009) for the complete loss of one cone type. That is a good approximation but no substitute for testing with affected people.
No, everything is calculated in your browser. A color is only shared if you press the link button yourself.
In HSL equal lightness values look unequally light: yellow glows, blue looks dark. OKLCH (Oklab by Björn Ottosson, in CSS since CSS Color 4) follows perception: the same L looks equally light, hue moves evenly. So the color area and the scale are built on it. The empty corner of the area cannot be displayed: sRGB screens have no color there, the pointer stays inside the visible region.
The ratio is (lighter luminance + 0.05) / (darker + 0.05), from 1 : 1 to 21 : 1. Normal text needs 4.5 : 1 (AA) or 7 : 1 (AAA), large text (18 pt, or 14 pt bold) 3 : 1 resp. 4.5 : 1; UI components and graphics 3 : 1. The display truncates instead of rounding: 4.499 never shows as 4.50. “Bring color to AA” only changes your color’s lightness; hue and chroma stay.
The conversion is the plain formula from RGB (K = 1 − largest channel). Real print depends on color profile, paper and inks — a print-ready CMYK value needs a profile (e.g. FOGRA39) and software that applies it.
Red-green weakness is common, far more often in men than in women. The simulation works in linear RGB with the matrices of Machado, Oliveira and Fernandes (2009) at full loss of one receptor. Good palettes stay distinguishable in every row: use lightness, not hue alone.
A gradient in sRGB often turns gray and dull in the middle (e.g. blue → yellow). With “in oklab” / “in oklch” (CSS Color 4) the browser blends perceptually. Older browsers do not know the syntax — so an sRGB line is placed above as a fallback.
Luminance and contrast: W3C WCAG 2.1 (threshold 0.04045). OKLab: bottosson.github.io/posts/oklab. Gamut mapping: chroma is reduced (simplified compared to CSS Color 4). Color-blindness: Machado et al., IEEE TVCG 15(6), 2009. Color names: CSS Color 4 (148). Everything runs in your browser, nothing is sent.
Color area: ← → chroma, ↑ ↓ lightness (Shift: 5×). Number fields: ↑ ↓ changes by 1 or 0.005, with Shift ×10. Enter finishes input.
Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.