Color Converter

Convert between HEX, RGB and HSL with a live preview.

Frequently asked questions

When should I use HSL instead of RGB?
HSL is intuitive: hue is the pure color angle (0–360°), saturation its intensity, lightness how bright. Adjusting lightness or saturation is much easier in HSL than in RGB.
What does alpha mean?
Alpha (opacity) ranges from 0 to 100% here, or 0–1 in CSS. Transparent colors are written as the 8-digit hex form #RRGGBBAA or with rgba()/hsla(), and the CSS variable output switches to hex8 automatically when the color is not fully opaque.
What do the generated palettes mean?
Mono uses different lightness steps of one hue, analogous picks neighboring hues, triadic spreads three hues evenly around the wheel, and complementary pairs the color with its opposite. They are starting points for UI and branding work, not strict rules.
What is the CSS variable output for?
It produces a ready-to-paste custom property such as --color: #059669; or the 8-digit form when the color has transparency. Drop it into :root or a component style block and reuse the color by name.
Which color format should I use in CSS?
HEX is compact and ideal for fixed brand colors. rgb() is convenient when channels are computed, and hsl() reads better when you plan to adjust lightness or saturation. All three are fully supported in modern browsers.

About this tool

HEX, RGB and HSL describe the same colors in different ways: HEX is compact for CSS, RGB matches screen channels, and HSL is easier to reason about when adjusting hue, saturation and lightness. This converter shows all three at once, lets you pick colors visually and generates matching palettes for design work.

How to use it

  1. Enter a HEX, RGB or HSL value, or use the color picker and eyedropper.
  2. Review the converted values and the live preview.
  3. Choose a palette scheme — mono, analogous, triadic or complementary.
  4. Click any swatch or value to copy it to the clipboard.

← All tools