RGB to CIELAB Converter
Convert colors between RGB and CIELAB (via XYZ, D65 illuminant). Useful for graphic design, color management and measuring color differences accurately.
L*a*b*
—
From the colour picker to Lab coordinates
RGB says little about what the eye actually sees: two colour pairs separated by the same numeric distance in RGB can look nothing alike. CIELAB was designed to be roughly uniform in perception, which is why colour difference maths and comparisons in graphics work start from it. Pick a colour in the swatch and the L, a and b coordinates appear underneath.
The route is the textbook one: channels are normalised, the sRGB curve is undone using the linear segment below 0.04045 and the 2.4 power above it, the sRGB to XYZ matrix is applied, and the result is divided by the two-degree D65 white point. Then comes the cube root with its linear segment at 0.008856 and the L, a and b formulas. The blue 3b82f6 gives L 55.6 a 17.6 b -64.4, and pure white gives L 100 with a and b at zero.
Only the RGB to Lab direction exists on this page, despite the name suggesting a round trip: there is no field for typing L, a and b in. Input comes from the native browser picker, so the value is always 8-bit-per-channel sRGB, with no Adobe RGB, Display P3 or ICC profile. The constants are the classic ones, slightly off from the exact CIE 216 over 24389 values, hence the approximate label. Delta E has to be worked out elsewhere.
Frequently asked questions
Can I convert Lab back into RGB?
Which illuminant does it use?
Can I type a hex code?
Related Tools
Color Converter
Convert colors between HEX, RGB, HSL and CMYK instantly. Enter any format and get equivalents in the others. Live color preview.
Cents Difference Calculator
Calculate the difference in cents (hundredths of a semitone) between two frequencies. An essential tool for fine instrument tuning, microtonality and music study.
CSV to JSON
Convert CSV to JSON. The first row becomes object keys, the rest become array items. Supports separators , ; and \t. Auto-detects numbers and booleans. Everything in your browser.
Crop Factor by Sensor Size
Pick a camera format and get its focal length multiplier against full frame: APS-C 1.5 or 1.6, Micro Four Thirds 2.0, 1-inch 2.7, medium format 0.79.
SASS to CSS Converter
Explains the differences between indented SASS (.sass) syntax and CSS with side-by-side examples.
dB SPL to Pascal Converter (Sound Pressure)
Convert sound pressure level in dB SPL to pascals using the 20 µPa hearing-threshold reference: p = 20 µPa × 10^(dB/20). 94 dB SPL works out at 1.0024 Pa, near enough 1 pascal.