24 converter Units · Currency · Files

Convert HSL to RGB Hue Saturation Lightness ↔ Red Green Blue Free Online Secure

Type a value in HSL and read it in RGB at once. The arithmetic happens in your browser, nothing is sent anywhere, and what the conversion depends on is written out below rather than assumed.

Convert a value

Rounded coming back
HSL
rgb(89, 69, 49) RGB
One colour, two spellings

hsl(30, 29%, 27%) = rgb(89, 69, 49)

About this converter
Formula hsl(H, S%, L%) → rgb(R, G, B)
What it keeps The colour as the eye sorts it: a hue on the wheel, how saturated it is, how light. That is why hsl is worth having — you can make a colour paler or a shade darker by changing one number, which is nearly impossible in hex.
What it cannot do The two describe the same colours, but hsl reaches them through a different geometry and its three numbers are rounded to whole degrees and whole percents when written down. So a colour taken to hsl and back can land one or two steps from where it started — visually the same, not byte-for-byte the same. If you need the exact bytes back, keep the hex.
Where it runs In your browser. Nothing is uploaded, so there is nothing to delete afterwards.

Nothing uploaded

Where these notations come from

Hex and RGB are the same thing written twice. A screen colour is three numbers — how much red, green and blue light to emit — each from 0 to 255, which is one byte; hex simply writes those bytes in base sixteen, so #FF8800 and rgb(255, 136, 0) are the same instruction to the same pixel. HSL was invented because neither is readable by a human: it gives hue as an angle around a colour wheel, with saturation and lightness as percentages, so a designer can make something lighter without recomputing three figures. CMYK belongs to a different world altogether — ink rather than light. It is subtractive, built from four printing plates, and it cannot reach every colour a screen can, because a screen emits light while paper only reflects it.

Where you meet them

Hex is what you type into a stylesheet and what a design tool hands you. RGB appears wherever a colour needs arithmetic — gradients, transparency, code that computes a shade. HSL is what you reach for when adjusting a palette by hand, because the changes you want are usually changes of one of its three numbers. CMYK is what a printer asks for, and converting into it is the moment a design stops being light and becomes ink.

Questions people ask

Why does my CMYK result differ from what my printer gives me?

Because there is no single correct conversion. The arithmetic on this page is the simple, device-independent one, which is the right answer when you need a starting point or a rough equivalent. A print shop converts through a colour profile that accounts for the specific ink, paper and press, and the same RGB colour will produce different CMYK values on glossy stock than on uncoated. For anything that must match, ask the printer for their profile rather than trusting a formula.

Why can't some screen colours be printed?

Because the two cannot reach the same colours. A screen makes colour by adding light and can produce a vivid, saturated cyan or green that ink simply cannot match; paper makes colour by absorbing light, and the brightest it can ever be is the white of the page. The set of colours each can reach is called its gamut, and where they do not overlap, a conversion has to choose the nearest available colour. That is why a bright screen colour often looks slightly dulled in print.

Is the answer exact?

Where both units are defined in terms of one another by whole numbers, yes — the page says so above the figure, and the only rounding is in how many digits are shown. Where the ratio has no finite decimal, the page shows twelve significant digits and says the relation is approximate rather than pretending otherwise.

Does anything I type leave my device?

No. The arithmetic runs in your browser; nothing is uploaded and there is no server to upload it to. Load the page once and it keeps working with the network switched off.

Length & area Mass & volume Temperature Currency