Color Converter

Convert between HEX, RGB and HSL with a live preview.

ABOUT THIS TOOL

What this tool does

Designers talk in hex, developers often use RGB or HSL. This tool converts a colour between those formats so you can move a colour from a design file into CSS without guessing.

USE CASES

When to use it

  • You have a hex colour from a design and need the RGB values for code.
  • You want to lighten or darken a colour by adjusting its HSL values.
  • You are matching a colour across different tools that use different formats.
  • You need the CSS-ready form of a colour you picked visually.
UNDERSTAND IT

How to understand this tool

INPUT
HEX color#E8622E
OUTPUT
HEX #E8622E RGB rgb(232, 98, 46) HSL hsl(17°, 80%, 55%)

HEX and RGB describe the same thing with different notation: three numbers for red, green and blue. HSL describes the same colour as hue, saturation and lightness, which is easier when you want a lighter, duller or more saturated version without guessing new numbers. All three are device values, not print values.

What it will not do

  • It does not convert to CMYK for printing or to named CSS colours.
  • It cannot pick a colour that is accessible; contrast depends on what sits next to it.
FAQ

Questions people ask

What is HSL?

Hue, Saturation and Lightness — a way to describe colour that is often easier to adjust than RGB.

Why does the same colour have different values?

They are different notations for the same colour; none is more "correct" than another.

GOOD TO KNOW

One thing worth knowing

This is a lightweight browser tool — for production-critical work, pair it with your normal linters and tests.