How to use it
- 1
Enter a HEX color with or without #.
- 2
Review the normalized value and preview.
- 3
Copy the RGB or HSL CSS value.
What the tool can do
- Normalizes short HEX to full #RRGGBB.
- Calculates RGB channels and CSS rgb() notation.
- Calculates HSL hue, saturation, and lightness.
Common use cases
- Converting a HEX design token to CSS rgb() or hsl().
- Checking color channels before documenting a UI kit.
- Quickly normalizing short HEX from a design.
How it works inside
HSL is rounded to whole degrees and percentages for practical CSS output.
The calculation runs in the browser and does not require a network request.
Questions and answers
How do I get RGB and HSL from a HEX colour?
Enter a supported HEX colour, such as #336699. The tool shows its representations in other formats. Copy the value you need into your editor or stylesheet.
Will converting formats change the colour?
The formats describe the same colour in different ways; conversion does not choose a new palette. Numeric rounding may affect representation precision slightly. Use the contrast checker to assess text readability.
