HEX, RGB and HSL, always in sync.
White text on this colour
6.17:1
Passes AA
Black text on this colour
3.40:1
Large text only
HEX #RRGGBB <-> RGB(r, g, b) <-> HSL(h, s%, l%)
HEX and RGB are the same information in different notation. HSL re-expresses it as hue, saturation and lightness, which is easier to adjust by eye.
The colour #0F6E5B.
That is rgb(15, 110, 91) and hsl(169, 76%, 25%), which passes AA contrast against white for normal text.
It compares a colour against white and black. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
Yes, three-digit codes such as #0F6 are expanded automatically.
Because adjusting lightness or saturation by hand is far easier in HSL than by editing hex digits.
Looking for something else? Browse all 8 categories of tools.