RGB to LAB
Convert RGB to LAB for free: type three numbers from 0 to 255 and get the CIE Lab value with two decimals. rgb(220, 38, 38) becomes lab(48.8% 67.7 48.8). Lab is built so that equal steps look roughly equal to the eye, which is why color difference formulas and print specs use it. Everything runs in your browser.
How to convert RGB to LAB
- 1Type R, G and B into "Color", such as 220 38 38
- 2Commas, rgb() or percentages work as well
- 3Click "Copy" next to the Lab value in the big line
- The color as lab(L a b), with L in percent
Good reasons to use it
- Three numbers are enough.On this page 220 38 38 is read as red, green and blue, no rgb() needed
- LCH comes along.The list also shows lightness, chroma and hue as LCH, next to OKLab and OKLCH
- Nothing is sent anywhere.The conversion is a short calculation in your browser
What you can do
- Turn RGB from 0 to 255 into CIE Lab, written the CSS way as lab() with L in percent
- Type rgb() with percentages too, such as rgb(100%, 50%, 0%), or paste a hex code or a CSS name
- Choose a color with the color picker: the field writes it as rgb(), the Lab value follows
- Read XYZ in three forms (D65, D50 and 0 to 100) for work that starts from XYZ
Good to know
- The tool takes RGB as sRGB, the color space of the web. RGB values from another space, such as Adobe RGB, give a different Lab color there
- Lab is calculated with the D50 white, as CSS does. Tools that use D65 Lab arrive at slightly different numbers
- Each channel must lie between 0 and 255. A value outside that range gives a message instead of a color
- A transparency value, as in rgb(220 38 38 / 50%), is read but left out
Questions
How do I convert RGB to Lab?
Type the three RGB numbers into the field, for example 34 197 94. The big line shows lab(70.22% -57.98 39.44). Click "Copy" to use it.
Why use Lab instead of RGB?
In RGB the same step can look large in one color and tiny in another. Lab is built to follow the eye more closely, so it is used to compare colors and to describe them for print.
Why is L given in percent?
That is how CSS writes lab(). L runs from 0 to 100, so 48.8% simply means L = 48.8.
Is my color sent anywhere?
No. The tool calculates in your browser, and no request is made with your color.
More tools in Web & code
That page doesn't exist. Search or drop a file below to find the tool you need.
One site for every file job. What’s yours?
Stop hopping between converter sites. Pick from 410+ tools, or a recipe that chains several.
- Files Stay On Your Device
- No watermark
- Works offline
Drop a file here
A pasted file works too.
or search for a tool
Open an app
From “ugh, this file” to done, in three steps.
- Drop it, or pick a task
No file? Search for what you need. Files are processed on your device, not uploaded for processing.
- Pick what you want
Smaller, another format, signed, merged. One click, no settings to study first.
- Make it a recipe
Need three steps in a row every week? Chain them once and run the same recipe next time.
One approved toolbox for the whole team.
In offices, on building sites and in agencies, teams handle sensitive files all day. ToolRecipe gives everyone the same tools and the same recipes, and the files are processed on each person's own computer.
- Files are processed on the employee's device
- Company recipes everyone runs the same way
- One place instead of ten converter sites