UtilDojo

Popular

Menu

Color Picker — HEX, RGB, HSL & Contrast Checker

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

Pick a colour

#c2410c

Formats

HEX
#c2410c
RGB
rgb(194, 65, 12)
HSL
hsl(17, 88%, 40%)
HSV
hsv(17, 94%, 76%)
OKLCH
oklch(55.3% 0.174 38.4)

Contrast (WCAG)

White text
5.18:1AAAAAAA large
Black text
4.06:1AAAAAAA large

AA needs 4.5:1 for body text (3:1 for large text); AAA needs 7:1. Recommended text colour on this background: white.

Palette

Scale (50–950)

Tints

Shades

See also

About this tool

Choose a colour with the picker or type a 3- or 6-digit hex code, and every common notation appears with a copy button: HEX, RGB, HSL, HSV and the newer OKLCH used in modern CSS. On Chrome and Edge, “Pick from screen” grabs any colour visible on your display.

For example, enter #1e40af and the Formats panel reads rgb(30, 64, 175), hsl(226, 71%, 40%), hsv(226, 83%, 69%) and oklch(42.4% 0.181 265.6). The large swatch shows the hex code on the colour in whichever of black or white reads better.

The palette section builds a Tailwind-style 50–950 scale from your colour in OKLCH, so lightness steps look even, along with simple tints (mixed with white) and shades (mixed with black). The scale keeps your hue and runs lightness from 97% at step 50 to 22% at 950, with chroma eased at the ends so the extremes do not turn muddy; for #1e40af the 500 step is #527eef and 900 is #112767. Click any swatch to make it the current colour.

The contrast panel shows how readable white and black text are on the colour, with the ratio, WCAG AA, AAA and AA large pass/fail badges and a recommended text colour. White on #1e40af is 8.72:1 and passes everything; black is 2.41:1 and fails. To test two colours of your own use the Colour Contrast Checker, and to convert a value you already have as rgb(), hsl() or oklch() use the HEX to RGB converter. Everything runs in your browser and nothing is uploaded.

Frequently asked questions

What is OKLCH?

OKLCH describes colour by lightness, chroma and hue in a perceptually uniform way, so equal steps look equal to the eye. Use it for palettes, for lightening or darkening a brand colour without the hue drifting, and for gradients between distant hues. All current browsers support oklch() in CSS.

What contrast ratio do I need?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. The badges show which levels white and black text reach on your colour.

Why is “Pick from screen” missing?

It uses the EyeDropper API, which is currently available in Chrome, Edge and other Chromium browsers but not in Safari or Firefox.

Why do the tints look different from the 50–950 scale?

Tints and shades are plain mixes with white or black in sRGB, so they drift towards grey and lose saturation. The scale is built in OKLCH, which keeps the hue and spreads lightness evenly, so it is the better basis for a design system.

Can I paste rgb() or hsl() here?

The colour field takes hex only. Paste any other format into the HEX to RGB converter, which reads rgb(), hsl(), hsv(), oklch() and common colour names.

Related tools