About Color Converter
The contrast readout is the useful half, scoring a foreground and background pair against WCAG thresholds while you adjust them. You find out a combination fails at the point you can still change it, rather than in an audit months later.
Convert colours between HEX, RGB and HSL in both directions and check WCAG contrast ratios for accessibility as you work. Designers and developers use it to translate brand colours across formats and to confirm text is readable against its background.
Pair a foreground and background colour to see whether the combination clears AA or AAA. The thresholds differ by size — large text passes at 3:1 where body text needs 4.5:1 — which is why a heading can survive a tint its own paragraph cannot.
The three notations describe the same colour and are not equally easy to reason about. HEX and RGB both specify amounts of red, green and blue, which is how a screen emits light but not how anyone thinks about colour: nudging #1E90FF slightly darker means adjusting three values and guessing. HSL re-parameterises the same space as hue, saturation and lightness, so darker is one number down and the hue is untouched. That is why palettes are usually built in HSL and shipped in HEX.
Contrast is the part that has consequences beyond taste. WCAG expresses it as a ratio between the relative luminance of two colours, and the thresholds depend on text size: normal body text needs 4.5:1 to pass AA, while large text clears at 3:1. Luminance is weighted toward green and is not the same as how bright a colour looks, which is why two colours that feel similarly dark can score very differently and why checking beats guessing.
Common use cases
- Developers translating a brand colour from a style guide's HEX into the RGB or HSL a component expects.
- Designers checking a text and background pairing clears WCAG AA before a design review rather than after an audit.
- Teams building a tint and shade scale from a base colour by stepping lightness in HSL.
- Anyone matching a colour picked out of a screenshot to the nearest value in an existing palette.
- Accessibility reviewers documenting which combinations in an interface pass and which need changing.