Free Tool

Color Picker and Contrast Checker

Pick a color, copy its HEX, RGB, or HSL value, and verify foreground and background text contrast against WCAG 2.2 thresholds.

Preview

Readable color starts with measurable contrast.

Preview normal and large text on the selected background before using the pair in an interface.

Converted foreground values

HEX#ff10f0
RGBrgb(255, 16, 240)
HSLhsl(304, 100%, 53%)

WCAG contrast ratio

5.77:1

WCAG 2.2 text thresholds

AA normal text
Requires 4.5:1
Pass
AA large text
Requires 3:1
Pass
AAA normal text
Requires 7:1
Fail
AAA large text
Requires 4.5:1
Pass

Colors stay in your browser and are not uploaded.

Move between HEX, RGB, and HSL

HEX and RGB describe the red, green, and blue channels used by screens. HSL expresses the same color as hue, saturation, and lightness, which can be easier to adjust systematically. The formats describe color differently but can resolve to the same visible output.

Check text contrast before shipping

Contrast compares the relative luminance of the text and its background. Under WCAG 2.2, Level AA calls for a ratio of at least 4.5:1 for normal text and 3:1 for large text. Level AAA calls for 7:1 and 4.5:1 respectively. Treat thresholds as a starting check, then review the real interface at its final size and weight.

Color should not carry meaning alone

Pair status colors with labels, icons, patterns, or position so the message remains clear for people with color vision differences. Test hover, focus, active, disabled, error, and success states in both light and dark themes; the resting component alone is not enough.

Frequently Asked Questions

Enter a 3- or 6-digit HEX value or use the native color control. The picker converts the selected foreground color to RGB and HSL immediately, and each format can be copied separately.

A contrast ratio compares the relative luminance of a foreground and background color. Ratios range from 1:1 for identical luminance to 21:1 for black and white.

WCAG 2.2 Level AA requires at least 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 for normal text and 4.5:1 for large text.

No. Contrast is one requirement. Interfaces should also avoid using color as the only way to communicate meaning and should preserve visible focus, readable sizing, and clear interaction states.

Displays, color profiles, brightness, ambient light, and browser rendering can all affect perception. Use numeric values for consistency, then test important color pairs on representative devices and in both light and dark themes.

No. Conversion and contrast calculations happen locally in your browser. The tool does not need to upload or store the colors you enter.

Related tools

Keep working with a nearby calculator or utility.

View all tools

Build analytics your team can read

BuddyStat keeps website data clear, focused, and accessible across light and dark themes. Get started for free with up to 3,000 pageviews per month.

Start tracking for free