RGB to LCH Converter
RGB in, LCH out — with the working shown.
To convert RGB to LCH, normalise the input, linearise the channels, move into the perceptual space, go polar, then check the gamut. For example, rgb(47 129 247) in RGB is lch(55.09% 68.11 284.75) in LCH.
This is a free RGB to LCH converter. Type or paste any red, green and blue channel values into the field above and the LCH value updates as you type, along with every other notation the web understands. LCH is CIE Lab expressed in polar coordinates, so chroma and hue are separate dials.
Conversions run entirely in your browser using the same color engine as the rest of the site: values round-trip through linear sRGB and CIE XYZ rather than through an approximation, so what you copy is accurate to the last digit the format can carry.
How to convert RGB to LCH
- Normalise the input. Read the RGB value and scale each component into the 0–1 range the maths expects.
- Linearise the channels. Undo the sRGB gamma curve, because the encoded 0–255 numbers are not proportional to light and averaging them directly is what makes gradients go muddy.
- Move into the perceptual space. Convert linear RGB to CIE XYZ under a D65 white point, then apply the Lab transfer function.
- Go polar. Chroma is the distance from the neutral axis and hue is the angle, so C = √(a² + b²) and H = atan2(b, a).
- Check the gamut. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get.
Worked example: rgb(47 129 247) converts to lch(55.09% 68.11 284.75). That color is Dodger Blue, and the tool above shows each intermediate step for whatever value you enter.
Common RGB to LCH values
The twenty colors people look up most often, converted from RGB to LCH. Every row is computed by the same engine as the tool above.
| Color | RGB | LCH |
|---|---|---|
| White | rgb(255 255 255) | lch(100% 0 0) |
| Black | rgb(0 0 0) | lch(0% 0 0) |
| Red | rgb(255 0 0) | lch(53.24% 104.55 40) |
| Lime | rgb(0 255 0) | lch(87.73% 119.78 136.02) |
| Blue | rgb(0 0 255) | lch(32.3% 133.81 306.28) |
| Yellow | rgb(255 255 0) | lch(97.14% 96.91 102.85) |
| Cyan | rgb(0 255 255) | lch(91.11% 50.12 196.38) |
| Magenta | rgb(255 0 255) | lch(60.32% 115.54 328.23) |
| Silver | rgb(192 192 192) | lch(77.7% 0 0) |
| Gray | rgb(128 128 128) | lch(53.59% 0 0) |
| Maroon | rgb(128 0 0) | lch(25.54% 61.29 38.38) |
| Olive | rgb(128 128 0) | lch(51.87% 58.13 102.85) |
| Green | rgb(0 128 0) | lch(46.23% 71.85 136.02) |
| Purple | rgb(128 0 128) | lch(29.78% 69.31 328.23) |
| Teal | rgb(0 128 128) | lch(48.25% 30.07 196.38) |
| Navy | rgb(0 0 128) | lch(12.97% 80.27 306.28) |
| Orange | rgb(255 165 0) | lch(74.94% 82.5 73.14) |
| Pink | rgb(255 192 203) | lch(83.59% 24.37 7.84) |
| Gold | rgb(255 215 0) | lch(86.93% 87.15 91.26) |
| Crimson | rgb(220 20 60) | lch(47.04% 78.48 25.35) |
RGB and LCH, briefly
RGB is three channels from 0 to 255 describing how hard the display drives its red, green and blue subpixels. Valid range: 0–255 per channel.
LCH is CIE Lab expressed in polar coordinates, so chroma and hue are separate dials. Valid range: L 0–100, C 0–150, H 0–360°.
Frequently asked questions
How do you convert RGB to LCH?
1. Read the RGB value and scale each component into the 0–1 range the maths expects. 2. Undo the sRGB gamma curve, because the encoded 0–255 numbers are not proportional to light and averaging them directly is what makes gradients go muddy. 3. Convert linear RGB to CIE XYZ under a D65 white point, then apply the Lab transfer function. 4. Chroma is the distance from the neutral axis and hue is the angle, so C = √(a² + b²) and H = atan2(b, a). 5. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get. The converter on this page does all of it as you type, and shows the working underneath.
What is rgb(255 0 0) in LCH?
Pure red, rgb(255 0 0), is lch(53.24% 104.55 40) in LCH. There is a table of twenty common colors converted to LCH further up this page.
What is rgb(47 129 247) in LCH?
rgb(47 129 247) converts to lch(55.09% 68.11 284.75). It is a dodger blue, and you can paste any other value into the field at the top of the page to convert it.
Is RGB to LCH conversion lossless?
Within sRGB, yes — converting to LCH and back returns the value you started with. The only rounding happens when a component is written out to a fixed number of decimal places.
Can I use LCH directly in CSS?
Yes. lch(55.09% 68.11 284.75) is valid CSS and works in every current browser.
Does this RGB to LCH converter support transparency?
Alpha is preserved wherever the target notation can carry it — eight-digit hex, rgb() / a, hsl() / a and the modern CSS spaces all round-trip an alpha channel. CMYK has no alpha, so it is dropped there.
Is my color data sent anywhere?
No. Every conversion on this site runs in your browser with no network request, no account and no analytics. You can disconnect and it keeps working.