🎨

Color Picker

Pick any colour visually and copy it as HEX, RGB, HSL or a CSS custom property. Includes a generated shade and tint scale.

✓ Free forever✓ No signup✓ 100% private — runs in your browser

Color Picker

Pick any color and get HEX, RGB, HSL, CMYK, and CSS values instantly.

HEX
#7c6cff
RGB
rgb(124, 108, 255)
HSL
hsl(245, 100%, 71%)
CMYK
cmyk(51%, 58%, 0%, 0%)
CSS Variable
--color-primary: #7c6cff;
Tailwind (approx)
violet-500
Swift UIColor
UIColor(red:0.49,green:0.42,blue:1.0,alpha:1)
Shades
Tints & Tones
Complementary

Every colour on a screen is the same thing described three ways. HEX, RGB and HSL are different notations for identical values — which one you reach for depends on what you are trying to do with it.

How to use the Color Picker

  1. Pick a colour using the visual picker, or type a value directly
  2. Copy it in whichever format you need
  3. Use the generated shades and tints to build a consistent scale
  4. Check your text and background combinations for contrast

HEX, RGB and HSL

HEX — #7c6cff. Three byte pairs for red, green and blue. Compact and the most common format in design handoff, but you cannot look at it and predict the colour.

RGB — rgb(124, 108, 255). The same numbers in decimal. Marginally more readable, and rgba() adds transparency.

HSL — hsl(245, 100%, 71%). Hue as an angle on the colour wheel, saturation and lightness as percentages. This is the one worth learning, because it maps onto how people actually think about colour. Want a darker version? Lower the lightness. A muted version? Lower the saturation. The hue stays put.

Generating a consistent palette in HEX means guessing. In HSL it is arithmetic.

Building a usable scale

A single colour is rarely enough. Interfaces need a range — a light background tint, a mid tone for borders, the base for buttons, a darker shade for hover states.

Holding hue and saturation constant while stepping lightness gives a coherent family. The common refinement is to nudge saturation up slightly in the darker steps, because colours otherwise look washed out as lightness falls.

Whatever you generate, check it: a scale that looks balanced can still fail contrast requirements. Run your text and background pairs through the Contrast Checker before committing.

Why a colour looks different on another screen

A hex value is a set of instructions, not a colour. What appears depends on the display interpreting it, and displays disagree.

The main variable is the colour space. Most of the web assumes sRGB, which covers a relatively narrow range. Modern phones and laptops commonly cover Display P3, which is about 25% wider. A saturated value shown on a P3 screen without a declared colour space can render noticeably more vivid than intended — the same number, stretched across a bigger range.

CSS can now be explicit: color: color(display-p3 1 0 0) specifies a red outside sRGB entirely, and browsers fall back for displays that cannot show it.

Beyond that sit the ordinary variations: panel technology, factory calibration, brightness, ambient light, and operating-system features such as night shift that warm the whole display on a schedule.

The practical conclusion is that exact colour matching across uncalibrated screens is not achievable. What is achievable is sufficient contrast, which survives all of this — which is why accessibility checks are a more reliable guide than how a colour looks on your own monitor.

From one colour to a working set

A single brand colour is not enough to build an interface. What you need is a scale — the same hue at many lightness levels — and HSL makes generating one straightforward.

Take your base colour's hue and saturation, then produce steps at roughly 95%, 90%, 80%, 65%, 50%, 40%, 30%, 20% and 10% lightness. That gives nine values: the lightest for subtle backgrounds, the middle for fills and borders, the darkest for text on pale backgrounds.

Two refinements make the result look professional rather than mechanical. Reduce saturation at the extremes — very light and very dark steps look artificial at full saturation, so easing it off at both ends reads more naturally. And shift the hue slightly across the scale, warming the light end and cooling the dark end, which is what makes hand-built palettes feel richer than generated ones.

Then test the pairings. For each background step, check which text steps clear 4.5:1 with the contrast checker. Documenting that once saves rediscovering it on every screen.

Frequently asked questions

Which format should I use in CSS?

Any of them work. HEX is most common in handoff; HSL is far easier to manipulate for variations. Define your palette as custom properties on :root so it lives in one place.

What is the difference between a shade and a tint?

A shade is the colour mixed with black (darker), a tint is mixed with white (lighter). A tone is mixed with grey, which reduces saturation without changing lightness much.

Why does my colour look different on another screen?

Displays vary in calibration, gamut and colour profile. The same HEX value genuinely renders differently across devices. Design with adequate contrast so the result survives imperfect displays.

What are the 8-digit HEX codes?

HEX with alpha — the last two digits are opacity, 00 fully transparent to FF fully opaque. Supported in all current browsers.