Colour input
Converted values
HEX, RGB and HSL
HEX and RGB describe red, green and blue channel values. HSL expresses the same colour as hue, saturation and lightness, which can be easier to adjust by eye.
More useful tools
General information only. Results are estimates and may vary by convention, provider, location or implementation.
More information
How to use it
Enter a colour in a supported format such as HEX or RGB and inspect its equivalent representation. Designers and developers use these formats when matching colours between CSS, graphics applications and design systems.
HEX and RGB
A six-digit HEX colour encodes red, green and blue channels as hexadecimal pairs. #FF8000 represents red 255, green 128 and blue 0. Each standard 8-bit channel ranges from 0 to 255.
HSL explained
HSL describes hue, saturation and lightness. It can be convenient for adjusting the appearance of a colour, but HSL values are a different mathematical description of RGB colours rather than a different physical colour space.
Worked example
Pure blue is RGB(0, 0, 255) and #0000FF. Half-intensity red, RGB(128, 0, 0), is #800000. Small rounding differences may appear when converting to and from percentage-based formats.
Accessibility and limitations
Matching HEX values does not guarantee identical appearance on every display because calibration and colour profiles vary. For readable text, evaluate contrast against its background rather than judging the colour in isolation.