EditSafely

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.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Convert a LAB Color to Hex

  1. 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. 2. Back through the pipeline. The tool reverses the CIELAB math: coordinates go to XYZ under D65, then through the sRGB transfer curve to byte channels. Colors outside the sRGB gamut are clamped to the nearest displayable value.
  3. 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

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.

There is nothing to configure. Provide the input and the result appears on its own. 2 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,658 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. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

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.