One colour, three common formats

Consider the dark sage colour #536B58. It can also be expressed as rgb(83, 107, 88). In HSL, it is approximately hsl(133, 13%, 37%) when rounded for display. The three notations refer to the same colour, with small differences possible when values are rounded.

#536B58#8CA889#D5DFCC#F6F1E5
The same sage shade in contextA main shade, supporting mid-tone, pale tint and cream background from our Sage Green and Cream palette.

HEX: a compact code that is easy to share

A six-digit HEX colour begins with a hash sign and contains three two-digit pairs: #RRGGBB. Each pair represents the red, green or blue channel in hexadecimal, which runs from 00 (zero) to FF (255).

For #536B58, the red channel is 53 in hex (83 in decimal), green is 6B (107) and blue is 58 (88). Short forms such as #FFF are shorthand for #FFFFFF when the doubled digits match. Modern CSS also supports HEX alpha notation for transparency.

Use HEX when copying palette values between websites, design handoffs or CSS files. It is compact and widely recognised.

RGB: the individual red, green and blue channels

RGB writes the channels directly as numbers. The same sage shade becomes rgb(83, 107, 88). Each standard 8-bit channel ranges from 0 to 255.

Use RGB when you want to work directly with colour channels, inspect values from graphics tools or apply transparency with modern CSS syntax such as rgb(83 107 88 / 70%).

HSL: hue, saturation and lightness

HSL describes colour in a way that can be convenient for exploration:

  • Hue: an angle on the colour wheel, usually between 0° and 360°.
  • Saturation: how vivid or muted the colour is, from 0% to 100%.
  • Lightness: how light or dark the colour is, from 0% to 100%.

Use HSL when adjusting a colour family. Changing lightness can be a quick way to explore lighter and darker candidates; changing hue can suggest nearby or complementary colours. HSL lightness is not the same thing as perceived brightness, though, so adjustments still need visual and accessibility checks.

Which format should you choose?

FormatExampleBest for
HEX#536B58Palette sharing and concise CSS values
RGBrgb(83, 107, 88)Working with individual channels and transparent colours
HSLhsl(133, 13%, 37%)Exploring hue, saturation and lightness in a familiar format

How to convert a colour without mistakes

  1. Copy the exact HEX, RGB or HSL value from your source.
  2. Paste it into the ColorSchemePro colour converter or use its picker.
  3. Read the equivalent colour formats and compare the preview.
  4. Copy the value you need into your design or stylesheet.

Conversions may display rounded HSL percentages. Repeatedly converting rounded numbers back and forth can lead to small changes in the final HEX code. Keep the original HEX value as a reference when exact matching matters.

A practical CSS example

:root {
  --brand-sage: #536B58;
  --brand-sage-rgb: 83 107 88;
}
.button {
  background: var(--brand-sage);
  color: #FFFFFF;
}
.overlay {
  background: rgb(var(--brand-sage-rgb) / 70%);
}

Before shipping, check each text/background combination using the contrast tool. Converting to a different colour format changes notation, not whether the colour combination is readable.

Common questions

Is HEX better than RGB?

Not inherently. HEX is concise; RGB is helpful when you need individual channel values or transparency. Both work in CSS.

Is HSL always easier to make lighter?

It is often easier to adjust HSL lightness, but equal percentage steps can look uneven. A colour scale should be checked visually and for accessibility.

Do I need CMYK for a website?

No. CMYK is primarily a print-production colour model. For screen-based HTML and CSS, HEX, RGB and HSL are more relevant.