Color Converter

How to Convert Colors Between HEX, RGB, and HSL

Digital colors can be described in several formats. This converter takes a HEX code and shows the equivalent RGB and HSL values.

The three color models

Step-by-step

  1. Enter a 6-digit HEX color with or without the # prefix (e.g., 7B9CFF or #7B9CFF).
  2. Click Calculate to see RGB and HSL equivalents.

Worked example

#7B9CFF → RGB: 123, 156, 255 → HSL: 217°, 100%, 74%. The HSL tells you this is a vivid blue (217° hue), fully saturated (100%), and fairly light (74% lightness).

When to use which

HEX is standard for web design (CSS, HTML). RGB is common in programming and image editing. HSL is best when you need to create color variations — change just the hue for a different color at the same brightness, or adjust lightness for tints and shades.