Skip to content
TL ToolLab

Developer Tools

Color Converter

Convert colors between HEX, RGB, and HSL formats instantly. Enter any color value and get all three formats.

Enter Color

Accepts HEX (#rrggbb), RGB, or HSL format

Processing…

Result

Color values will appear here.

How to Use

  1. Enter a color in any common format — HEX (#1e90ff), RGB (rgb(30,144,255)), or HSL (hsl(210,100%,56%)).
  2. The format is auto-detected and converted to all three formats at once.
  3. A live swatch shows the resulting color, and each value can be copied individually.

Understanding Color Formats

HEX encodes red, green, and blue as two hexadecimal digits each (00-FF). RGB expresses the same channels as decimal numbers 0-255. HSL (Hue, Saturation, Lightness) describes color more intuitively — hue as a position on the color wheel (0-360°), saturation and lightness as percentages — which makes it easier to create lighter/darker or more/less vivid variants of a base color.

Common Uses

  • Converting a designer's HEX value into the RGB/HSL needed for CSS variables.
  • Generating color variants by adjusting HSL lightness while keeping hue constant.
  • Quickly previewing how a color code actually looks.