Color Converter
Type or pick a color — get every format, a tint/shade scale, and a WCAG contrast check.
Accepts #rrggbb, #rgb, rgb(r, g, b) or hsl(h, s%, l%).
Presets
Conversions
| HEX | ||
|---|---|---|
| RGB | ||
| HSL | ||
| HSV | ||
| CMYK |
Tint / shade scale
Click any step to load it.
Contrast check
How it's calculated
All conversions run in your browser through pure functions in /math.js: standard RGB ⇄ HSL/HSV/CMYK formulas, hex parsing (6- or 3-digit), and the WCAG 2.1 relative-luminance formula for contrast: (L1 + 0.05) / (L2 + 0.05). Tints and shades are linear mixes toward white or black. Nothing is uploaded anywhere.
FAQ
Why does the same color look different on different screens?
Displays have different color gamuts, brightness and calibration, so the same HEX can render warmer on one screen and colder on another. This tool assumes sRGB (the web standard); for print or HDR workflows you need a calibrated profile, which a browser tool cannot guarantee.
What is the difference between HSL and HSV?
Both repackage the same RGB value. HSL (hue, saturation, lightness) is symmetric: lightness 50% is the pure color, moving toward white or black from there. HSV (hue, saturation, value) puts the pure color at value 100% and only goes darker. HSL is usually more intuitive for picking tints and shades.
What contrast ratio should I aim for?
WCAG 2.1 requires at least 4.5:1 for normal text (AA) and 7:1 for the stricter AAA level; large text (18pt+ / 14pt+ bold) needs 3:1 at AA. This tool checks your color against both black and white text.
How are tints and shades made here?
Each step mixes your color linearly toward white (tints, right) or black (shades, left) by 20% per step. It is a quick design approximation, not a perceptually uniform scale — good enough for palettes and hover states.