How to use the color converter
- Pick a colour with the swatch, or type a HEX, RGB or HSL value.
- Read the equivalents in the other formats and copy the one you need.
- Check the WCAG contrast ratios for black and white text.
- Use the tint and shade row to build a small palette.
Three notations, one colour: HEX is compact and everywhere in CSS; RGB maps to what screens emit; HSL is the one humans can reason about, because lightness and saturation move independently of hue. Converting between them by hand is where design mistakes creep in — a "slightly darker" colour that quietly shifts hue, a grey that is not actually neutral.
Contrast is not optional
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text or UI components. Pale brand colours frequently fail at 3:1 against white text, which is why the checker shows both directions — the same swatch may need dark text rather than light. The ratio is symmetric in the formula but not in practice: pick the text colour that passes.
Tints and shades
Mixing a colour with white produces tints, with black produces shades, and with grey produces tones. A consistent 10% step gives you a usable scale for hover states, borders and backgrounds that stays in the same hue family — far more reliable than eyeballing values in a picker.
Frequently asked questions
Does it support alpha transparency?
Yes — the HEX output can include an alpha channel (8 digits), and the RGB/HSL values show the alpha separately.
What contrast ratio do I need?
4.5:1 for body text, 3:1 for large text (18 pt or 14 pt bold) and for graphical elements. AAA asks for 7:1.
Why do HEX and RGB sometimes disagree slightly?
HEX uses 8 bits per channel, so tiny rounding differences are expected when converting to and from percentages.
Can I paste a colour name?
Yes — CSS named colours such as rebeccapurple are accepted alongside numeric formats.