Color Picker with HEX, RGB and HSL

Designers, developers and anyone making a poster or presentation regularly need the exact code for a colour, or a few colours that go well together. Converting between HEX, RGB and HSL by hand is fiddly.

Pick a colour, or adjust it with RGB and HSL sliders, and this tool shows its HEX, RGB and HSL codes side by side. It also suggests matching complementary, analogous and triadic colours. Click any code or swatch to copy it.

HEX, RGB and HSL

HEX codes such as #3B82F6 are the standard in web design: three pairs of hexadecimal digits for red, green and blue. RGB writes the same three values as numbers from 0 to 255: rgb(59, 130, 246). HSL describes the colour as hue (0–360° around the colour wheel), saturation (0–100%) and lightness (0–100%): hsl(217, 91%, 60%).

HSL is the easiest to adjust by eye: change lightness for a darker or lighter shade, saturation for a more muted or vivid one.

Colour harmonies

The suggestions come from positions on the colour wheel. The complementary colour sits opposite (hue + 180°) and gives strong contrast. Analogous colours sit next to it (±30°) and feel calm and related. Triadic colours are spaced 120° apart for a balanced, lively palette.

How to use this tool

  1. Pick a colour: Use the colour box or type a HEX code.
  2. Fine-tune it: Move the RGB or HSL sliders.
  3. Copy the code you need: HEX, RGB or HSL.
  4. Explore harmonies: Click a suggested swatch to copy it.

Features

Worked examples

A brand blue

Your brand colour is #3B82F6 and you need it for CSS and a slide deck.

rgb(59, 130, 246); hsl(217, 91%, 60%)

Result: Copy the HEX for the website and the RGB for presentation software.

A festive palette

You start from saffron, #FF9933, for a Diwali poster.

hsl(30, 100%, 60%); complementary hue = 30 + 180 = 210°

Result: The complementary colour is a blue, which makes saffron text stand out.

Who it is for

Tips

Frequently asked questions

What is the difference between HEX and RGB?

They describe the same colour. HEX writes the red, green and blue values in base 16; RGB writes them as numbers from 0 to 255.

What are complementary colours?

Colours opposite each other on the colour wheel, 180° apart in hue. They create strong contrast.

Can I enter a colour code directly?

Yes. Type a six-digit HEX code, or set exact values with the RGB and HSL controls.

Related tools