RGB to OKLCH Converter
Convert RGB colors to OKLCH instantly. Paste a value below and copy the result.
Also in
About this conversion
RGB describes a color by its red, green, and blue light components, each from 0 to 255. It matches how screens physically produce color, which makes it the natural format for programmatic color manipulation in CSS and JavaScript.
OKLCH is a modern, perceptually uniform color space supported in CSS: lightness (0-1), chroma, and hue. Unlike HSL, equal changes in OKLCH values produce visually equal changes in color, so palettes and gradients built in OKLCH look more even to the human eye.
To convert RGB to OKLCH, the color is first interpreted in the sRGB color space and then expressed in OKLCH notation. Paste a RGB value like rgb(31, 162, 255) above and copy the OKLCH result. The conversion happens instantly in your browser, and nothing is uploaded.