GENERATORS

HEX, RGB & HSL Color Converter

Convert a HEX color to matching RGB and HSL values.

Runs locallyNothing is uploaded
Color values

Choose a color to convert it.

PRACTICAL GUIDE

How to use Color Converter

Last reviewed

Translate one sRGB color between HEX, RGB and HSL notation. The notations describe the same browser color through different coordinate systems; conversion does not create a wider color gamut.

When this tool helps

  • Move a design token between CSS formats
  • Inspect RGB channel values from a HEX code
  • Adjust hue, saturation or lightness in HSL

How to use it

  1. Enter a six-digit HEX color
  2. Convert to RGB and HSL
  3. Copy the notation needed by your stylesheet
  4. Visually verify the color in its final UI context

Converting Froggo green

Input
#B7E3A1
Result
rgb(183, 227, 161) with a corresponding HSL value

All outputs describe the same sRGB color, subject to display calibration.

Formula: HEX channel pairs convert to decimal RGB values from 0 to 255; HSL is derived from normalized RGB minimum, maximum and delta values

Limits and assumptions

  • Only six-digit sRGB HEX values are accepted
  • Alpha transparency is not part of this conversion
  • Displays can render the same values differently

Frequently asked questions

Does converting HEX to RGB change the color?

No. It changes the notation, not the underlying sRGB channel values.

Can I convert an eight-digit HEX value?

This tool currently handles opaque six-digit HEX colors only.

Why can HSL values differ between tools?

Tools may round intermediate values differently while producing visually equivalent colors.