Three ways to describe a color
HEX writes the red, green and blue channels as hexadecimal pairs. RGB uses values from 0 to 255. HSL describes hue, saturation and lightness. For example, pure red is #FF0000, rgb(255, 0, 0), and hsl(0, 100%, 50%).
A CLEARER WAY TO SEE COLOR
Move between HEX, RGB and HSL.
Find a pairing that is easier to read.
Ready to explore.
PUT TWO COLORS TOGETHER
This is how your text and background work together.
CONTRAST RATIO
—
Pass/fail uses the full calculation, not the displayed rounded ratio. This checks color contrast only, not complete accessibility.
A LITTLE CONTEXT
HEX writes the red, green and blue channels as hexadecimal pairs. RGB uses values from 0 to 255. HSL describes hue, saturation and lightness. For example, pure red is #FF0000, rgb(255, 0, 0), and hsl(0, 100%, 50%).
A bright accent can look great as a background but be difficult to read as small text. Use your converted color in the contrast checker, then compare it with the actual surface behind it.
A pair just above a contrast threshold may still feel harder to read with a thin font. Aim comfortably above the minimum and check your design at its real size.
This tool supports opaque, 8-bit sRGB colors. HEX accepts 3 or 6 digits. Alpha transparency, named colors, CMYK and wide-gamut color spaces are not supported. Flatten a transparent color against its actual background before checking contrast.
RGB channels are whole numbers. HSL values are displayed to two decimal places, so converting the rounded HSL back may differ by one channel step. Hue has no visible effect when saturation is zero.
For text, WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively. Large text means at least 24 CSS pixels, or about 18.67 pixels when bold. Font weight, images, gradients and other accessibility needs require separate review.
Sources: W3C minimum contrast guidance and enhanced contrast guidance.
Each sRGB channel is converted to a linear value, then weighted to find relative luminance. The lighter luminance plus 0.05 is divided by the darker luminance plus 0.05. Black on white is 21:1; identical colors are 1:1.
Colors are processed only in this browser tab. They are not saved or uploaded. This page uses no advertising or analytics scripts and requires no account. The hosting provider may process connection information to serve and secure the site. Any future advertising and required consent controls will be disclosed before activation.