Text & Conversion

Colour Converter

Convert HEX colours to RGB and HSL.

Read the guide

Run the tool

The calculation runs in your browser. This tool does not send your input to JVR Software.

More information

Back to the tool

What it is and when to use it

Color Converter expresses a colour in common web formats so it is easier to reuse across CSS, design files and documentation. It is useful when you get a hexadecimal design token and need to understand its red, green and blue channels or compare its hue and lightness.

How it works

The browser interprets supported color input and calculates equivalent channel values. Hexadecimal combines channel bytes into pairs of hex digits. RGB gives the same channels as separate numbers. HSL describes the hue angle with separate saturation and lightness percentages for the corresponding RGB colour.

How to use it

  1. Enter a supported value such as a six-digit hex code.
  2. Convert it and pick the output syntax your example or stylesheet expects.
  3. Compare the rendered result in its intended foreground and background combinations.

Worked example

#336699 represents red 51, green 102 and blue 153. An HSL representation can express its blue hue and relatively muted saturation. Two tools can show slightly different rounded HSL decimals for the same RGB value and still render the same colour after rounding.

Reading the result

The color formats are alternative representations of the same channels where supported. Alpha transparency and perceptual colour spaces such as OKLCH carry separate information. Check the output labels before assuming every aspect of a design-system value has been preserved.

Common mistakes and limits

A conversion does not measure text contrast or account for transparency over another background. Test accessibility using the actual color pair and typography. Device display settings can vary, so use the chosen design tokens consistently and test real screens for important visual work.