COLOR TOOLS
Color Contrast Picker
Choose a base color and generate harmony suggestions, then read each suggestion’s measured contrast against the base. HEX, RGB, HSL, and WCAG AA/AAA results update locally in your browser.
BASE COLOR
Selected base
Every ratio below is measured against this color.
- RGB
- rgb(79, 140, 255)
- HSL
- hsl(219, 100%, 65%)
STEP 2
Harmony suggestions
Generate harmonies to see suggestions, readable swatches, and WCAG results.
How the contrast picker works
The tool converts the base color to HSL, rotates the hue by the amount each harmony needs, and adjusts lightness and saturation slightly on each regeneration. Every suggestion is converted back to HEX, RGB, and HSL. The five groups are complementary (the opposite hue), analogous (the two neighboring hues), triadic (two hues evenly spaced around the wheel), split complementary (the two hues beside the opposite hue), and high contrast (the candidates with the strongest measured contrast against the base).
Contrast uses the WCAG relative-luminance formula. Each sRGB channel is linearized, the channels are weighted 0.2126 red, 0.7152 green, and 0.0722 blue, and the ratio is (lighter + 0.05) / (darker + 0.05). Black and white produce 21:1, and identical colors produce 1:1. Ratios are rounded only for display, so the pass/fail checks use the unrounded value.
Reading WCAG AA and AAA results
WCAG sets four thresholds for text contrast. AA normal text needs 4.5:1, AAA normal text needs 7:1, AA large text needs 3:1, and AAA large text needs 4.5:1. Large text means at least 18pt (24px) regular or 14pt (about 18.66px) bold. Each suggestion lists all four results as Pass or Fail so the outcome never depends on color alone.
A passing ratio describes only the color pair. It does not by itself prove that a page meets WCAG: compliance also depends on text size, font weight, spacing, background images, gradients, transparency, focus indicators, and how the text is actually used. Check the real interface with the content and states you ship. The picker reports measured contrast; it does not certify accessibility.
Choosing a harmony
Complementary colors create the strongest hue contrast and suit accents, highlights, and calls to action. Analogous colors feel calmer and work well for related surfaces. Triadic and split-complementary palettes give more variety while keeping a measurable relationship to the base. High-contrast suggestions are practical starting points for text, icons, borders, and focus rings, but always test them with the final typography.
Use Use as base on any suggestion to explore the next step in the palette, or Regenerate variants to shift lightness and saturation while keeping each harmony’s hue relationship. Copy HEX, Copy RGB, or Copy HSL copies one value; Copy all HEX copies every unique suggestion.
Color contrast picker FAQ
Does the picker send or save my colors?
No. The color conversions, harmony generation, and contrast calculations run in this page. The tool does not send, store, or persist your input or results. The hosting provider and the disclosed advertising script may still process ordinary technical request information, as described in the privacy policy.
Why can a visually distinct pair still fail?
Perceived difference and measured contrast are not the same thing. Two hues can look clearly different while having similar luminance, which is what the WCAG ratio measures. That is why every result is shown as a number and as explicit Pass or Fail text.
Can I use these colors for text immediately?
Treat them as candidates. Confirm the ratio for the exact text size and weight you use, check hover and focus states, and verify the result with real content. The high-contrast group is a starting point, not a guarantee.
Related color tools
Need a starting color or a random palette? Open the random color generator. To compare several finished colors side by side, use the color comparison tool.
Last updated: