Skip to content
search-engine-optimizedby Netsolution
  1. Home
  2. Utilities
  3. Color Picker

Color Picker

Pick a colour and check straight away whether your text will stay readable.

Conversions and contrast computed locally, following the relative luminance formula of WCAG 2.1. Nothing is stored.

What this tool is for

Choosing a colour looks like a matter of taste. It partly is, but there is one measurable constraint that is not a matter of taste: contrast. Light grey text on a white background can be elegant and unreadable for some of your visitors.

The WCAG guidelines set precise thresholds: 4.5 to 1 minimum for body text, 3 to 1 for large text. Those values are not arbitrary — they correspond to what a person with imperfect vision can distinguish, a common situation past fifty.

This tool gives the codes in the three useful formats and computes the contrast straight away. It also offers variations, to build a coherent palette from a single colour.

The most widespread fault of carefully designed sites: a light grey at #999999 on white, which tops out at 2.8 to 1. It looks fine on the designer’s screen, and is hard to read for a notable share of the audience.

How to read the results

Hexadecimal is the most common format in CSS. Compact, universal, recognised everywhere. It is the one to copy into a stylesheet.

RGB spells out the red, green and blue components from 0 to 255. Useful when transparency has to be added, with the four-value variant.

HSL describes hue, saturation and lightness. It is the most practical format for creating variants: keeping the hue and varying only the lightness produces a naturally coherent range.

The contrast ratio is the decisive figure. Above 4.5, body text passes. Above 7, it reaches the demanding level. Below 3, the colour should not carry text.

The variations offer lighter and darker versions of the same hue, usable for hover states, muted backgrounds and borders.

Common mistakes

Judging contrast by eye. You are looking at a good, well-calibrated screen in good light. Your visitor is sometimes outdoors, in full sun, on an entry-level phone.

Testing only the main text. Secondary labels, legal notices and form placeholder text are almost always the worst. They are often the most useful.

Using colour as the only information. A field in error marked solely by a red border is invisible to a colour-blind person. Always add a text or an icon.

Inverting bluntly for the dark theme. An accent readable on white is often too dark on black. Each theme deserves its own values, checked separately.

Multiplying hues. A palette of two well-varied colours looks more professional than a rainbow. Coherence beats variety.

Going further

Frequently asked questions

What is a contrast ratio?

The ratio of brightness between a text and its background, expressed from 1 to 1 up to 21 to 1. The WCAG guidelines require at least 4.5 to 1 for body text, and 3 to 1 for large text. Below that, some of your visitors do not read comfortably — or at all.

Does contrast affect search rankings?

Not directly. But unreadable text sends visitors away, which degrades experience signals. And in many countries digital accessibility is a legal obligation for public services and for a good number of companies. So it is not only a question of comfort.

Is light grey on white, so elegant, acceptable?

Rarely. A grey at #999999 on white tops out around 2.8 to 1, well under the threshold. It is the most widespread fault of carefully designed sites: an understated aesthetic that excludes people with imperfect vision, a substantial share of the audience past fifty.

What is the difference between hexadecimal, RGB and HSL?

Three ways of writing the same colour. Hexadecimal is compact and universal in CSS. RGB describes the red, green and blue components. HSL describes hue, saturation and lightness, which makes variations far more intuitive: lightening means raising a single number.

How do I build a coherent palette?

Start from an accent colour and vary it in HSL by changing only the lightness. You get a naturally harmonious range. Add greys tinted slightly towards your accent rather than pure greys: the page then looks composed rather than assembled.

Should I provide a dark theme?

It has become expected, and it is not a simple inversion. An accent that works on white is often too dark on black. Check the contrast in both themes separately, with distinct values if need be.