Convert a LAB Color to Hex
Convert a color in LAB format to #rrggbb format. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert a color in LAB format to #rrggbb format.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert a LAB Color to Hex is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert a LAB Color to Hex
- 1. Enter the LAB coordinates. Paste a color in lab() notation, such as lab(100, 0, 0), into the input pane. L runs from 0 to 100; a and b can be negative or positive.
- 2. Back through the pipeline. The coordinates go to XYZ under D65 and then through the sRGB curve. A colour a screen cannot show, like lab(50, 200, 0), is clamped to the nearest displayable one and a warning says so.
- 3. Copy the resulting hex. Pure white lab(100, 0, 0) yields #ffffff; take whatever your coordinates produce and paste the code into your stylesheet or palette file.
When to use Convert a LAB Color to Hex
Convert a LAB Color to Hex brings colors from the perceptual CIELAB space back to something a browser can display. Measurement instruments, color research and print workflows report LAB values, and this tool tells you which on-screen hex code corresponds to them.
- Displaying spectrophotometer readings. A colorimeter measured a physical product sample and reported L, a and b. Convert the reading to hex so the web catalog can show a swatch approximating the real item.
- Converting interpolated LAB gradients. You interpolated between two colors in LAB to avoid muddy midpoints. Convert the intermediate coordinates to hex stops so an ordinary CSS gradient can reproduce the smooth ramp.
- Reproducing colors from a paper. A perception study lists its stimuli in CIELAB. Convert each triple to hex to rebuild the exact stimuli in a web-based replication of the experiment.
- Bridging print proofs to mockups. Your print vendor communicates target colors in LAB. Converting them lets you update the digital mockup so stakeholders preview roughly what will come off the press.
Examples
White
Input
lab(100, 0, 0)
Output
#ffffff
Red
Input
lab(53.24, 80.09, 67.2)
Output
#ff0000
Outside sRGB
Input
lab(50, 200, 0)
Output
#ff0082
About the Convert a LAB Color to Hex tool
Convert a LAB Color to Hex runs as plain JavaScript in your browser tab, with no server behind it. Convert a color in LAB format to #rrggbb format. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Hex Tools section, 108 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with the Letters setting, and the result refreshes the moment you change it. 3 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Does Convert a LAB Color to Hex cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Hex Tools →Convert an RGB Color to Hex
Quickly convert decimal RGB colors to hexadecimal colors.
Convert an RGBA Color to Hex
Convert a color in rgba(r,g,b,a) format to #rrggbbaa hex format.
Convert a HSL Color to Hex
Convert a color in HSL format to #rrggbb format.
Convert a HSV Color to Hex
Convert a color in HSV format to #rrggbb format.