ToolJovia
Colors

Color Converter

Convert opaque sRGB colors between HEX, integer RGB, and HSL representations.

✓ Browser-local processing

Loading tool…

How to use Color Converter

Translate common CSS color values using explicit numeric color math. The result includes six-digit HEX, RGB channels, and an HSL equivalent for use in design or code.

  1. Enter #RGB, #RRGGBB, rgb(r, g, b), or hsl(h, s%, l%).
  2. Select Run tool to convert the color into three common forms.
  3. Review the result, then copy it or download the generated file.

Good to know

  • Opaque sRGB colors only. No alpha, named colors, percentages in RGB, CSS variables, color(), Lab, or display-P3.
  • RGB channels are integers; HSL input converts to nearest integer RGB and output HSL is rounded to two decimals.

Common questions

Why does a round trip change HSL slightly?

Eight-bit RGB channels quantize a continuous HSL color, and the displayed HSL value is rounded.

Keep going with related tools

All colors →