Building a colour scale
Convert your base colour to HSL, then step the lightness up and down to generate consistent tints and shades.
Convert an RGB colour to HSL in your browser, the model that makes colours easy to adjust.
Maintained by Roshan.
Converts rgb colour to hsl in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all general convertersRGB describes a colour as amounts of red, green and blue light, which is how a screen builds it but not how a person thinks about it. HSL rewrites the same colour as a hue, a saturation and a lightness - three numbers that map onto the questions you actually ask when adjusting a colour. Which colour is it? How vivid? How light? Converting from RGB to HSL is what lets you take a value that came out of code or a graphics library and make it tweakable: a slightly lighter shade, a more muted version, the colour opposite it on the wheel are each a single number changing in HSL where they would be an awkward three-way adjustment in RGB. This does the conversion with the standard formula and rounds to whole degrees and percentages, the form CSS accepts directly.
Convert your base colour to HSL, then step the lightness up and down to generate consistent tints and shades.
Lower the saturation in the HSL value to get a softer version of the same hue, which is one number rather than three.
Because lighter, more muted, or opposite are each a single number changing in HSL, versus a three-channel adjustment in RGB.
Hue in degrees (0–360), saturation and lightness as percentages - exactly what CSS accepts.
No. HSL and RGB are two descriptions of the same colour.
A grey has no hue, so zero is used by convention, with saturation at zero marking it as grey.
Convert an HSL colour to RGB in your browser.
Convert a hex colour to HSL in your browser, the model that makes colours easy to adjust.
Convert an RGB colour to CMYK in your browser, the model print uses.