LazyTools Header
Free Color Converter — HEX, RGB, HSL, CMYK, HSB & LCH | LazyTools

Free Color Tool

Free Color Converter — HEX, RGB, HSL, CMYK, HSB & LCH

Convert any color between 8 formats instantly. Paste a HEX code, RGB value, HSL, HSB, CMYK or LCH — and get all other formats in one click. Includes a visual color picker and one-click copy for each format.

8 color formatsHEX, RGB, HSL, CMYKHSB, RGBA, HSLA, LCHVisual color picker

How to use the Color Converter

Using this tool takes under a minute. Furthermore, no account is needed and no data is sent to any server.

1
Enter any color format

Type or paste a color in any supported format: HEX (#F4A261), RGB (rgb(244,162,97)), RGBA, HSL, HSLA, HSB, CMYK or LCH. Furthermore, use the color picker swatch on the left to select a color visually.

2
Click Convert

Click the Convert button or simply stop typing — the results update as you enter a valid value. Furthermore, the large swatch at the top of the results panel shows the color visually.

3
Copy any output format

Each of the 8 output formats has its own Copy button. Click it to copy that format directly to your clipboard. Moreover, a 'Copied!' confirmation appears briefly so you know the action succeeded.

4
Use the color picker for visual selection

Click the green square beside the input field to open the browser's native color picker. Furthermore, selecting a color from the picker automatically fills all 8 output formats instantly.

How the color conversion works

All conversions are performed in the browser using pure JavaScript math, with no server communication at any point. Furthermore, the converter accepts input in 8 different formats and detects which format you have entered using regular expressions before parsing the values.

The conversion chain always passes through RGB as an intermediate step: any non-RGB input is first converted to RGB, then RGB is converted to all other target formats simultaneously. Furthermore, HSL and HSB are computed from RGB using the standard hue-saturation formulae. CMYK is derived by normalising each RGB channel and finding the black key component.

LCH (Lightness-Chroma-Hue) is a perceptually uniform color space increasingly used in CSS Color Level 4. The converter routes through the XYZ → Lab → LCH pipeline. Furthermore, perceptually uniform means that numerically equal differences in LCH values correspond to visually equal differences in color — something that RGB and HSL cannot guarantee.

Example: converting HSL to HEX, RGB and CMYK

The following example walks through a realistic scenario step by step. Furthermore, it shows what output to expect from a typical use case.

A UX designer receives a brand color specification as 'hsl(28, 89%, 67%)' and needs to provide the developer with a HEX code and the Figma team with an RGB value, and the print vendor with CMYK.

They paste 'hsl(28, 89%, 67%)' into the converter. The tool instantly produces: HEX #F4A261, RGB rgb(244,162,97), CMYK cmyk(0%, 34%, 60%, 4%). Furthermore, the LCH output (L:74.2, C:51.3, H:57.1) is ready for CSS Color Level 4 usage.

Each format is copied with a single click. Moreover, the large color swatch confirms the warm amber orange visually before any format is shared, preventing errors caused by misread or mis-typed values.

One paste, eight formats — convert any color to HEX, RGB, HSL, CMYK, HSB and LCH simultaneously without switching between multiple tools.

What is a color converter?

A color converter transforms a color from one notation system to another. Different tools, platforms and workflows require colors in different formats — web browsers primarily use HEX and RGB, design tools like Figma accept HSL and HSB, print workflows require CMYK, and modern CSS Color Level 4 supports LCH and Oklch. Furthermore, each format encodes the same color using entirely different mathematical representations.

HEX codes represent each RGB channel as a two-digit hexadecimal number from 00 to FF. RGB uses decimal integers from 0 to 255. HSL describes color as Hue (0–360°), Saturation (0–100%) and Lightness (0–100%). Furthermore, CMYK — used exclusively in print — describes color as ink percentages across Cyan, Magenta, Yellow and Key (Black) channels.

Why do different tools use different color formats?

Different color formats were developed for different output media. RGB and HEX are optimised for light-emitting screens. CMYK was developed for subtractive ink printing where mixing pigments absorbs light. HSL and HSB were designed to be more intuitive for humans — separating the perceptual qualities of hue, saturation and brightness. Furthermore, LCH and Oklch are newer perceptually uniform formats that make color manipulation more predictable for design systems.

What is the difference between HSL and HSB?

Both HSL and HSB describe color using Hue and Saturation, but differ in the third channel. HSL uses Lightness — where 50% is pure color and 100% is white. HSB uses Brightness — where 100% is pure color or white depending on saturation. Furthermore, HSB (also called HSV) is used natively in Photoshop and most design tools, while HSL is the standard in CSS.

Why a unified color converter saves design time

Color format conversions are one of the most repetitive tasks in digital design. A brand guideline may specify a Pantone color; the web team needs HEX; the developer needs RGB for CSS; the design token system uses HSL; the print vendor needs CMYK. Furthermore, manually converting between each format pair using separate tools introduces transcription errors and wastes time on every project.

A unified converter that accepts any format as input and outputs all formats simultaneously eliminates this friction entirely. Moreover, the visual color picker enables teams without a reference code to still start the conversion process by selecting the color visually and then copying the required format.

LCH support sets this tool apart from most converters. As CSS Color Level 4 adoption grows, design systems increasingly store colors in LCH or Oklch for better perceptual uniformity. Furthermore, having LCH in the same output panel means the converter serves both legacy and modern CSS workflows without switching tools.

Frequently asked questions

The tool converts between 8 formats: HEX, RGB, RGBA, HSL, HSLA, HSB/HSV, CMYK and LCH. Furthermore, it accepts input in any of these formats and produces all 8 outputs simultaneously.
Yes. Click the colored square on the left of the input field to open the browser's native color picker. Furthermore, any color selected visually immediately fills all 8 output formats.
The CMYK values are a mathematical conversion from the RGB color model. Furthermore, print-accurate CMYK often requires profile-based conversion using ICC profiles in professional software like Adobe Illustrator or Photoshop, as screen RGB and printing CMYK operate in different color gamuts.
LCH (Lightness-Chroma-Hue) is a perceptually uniform color space. It is supported in modern browsers via the CSS Color Level 4 specification. Furthermore, LCH is increasingly used in design systems because equal numeric differences in LCH correspond to visually equal perceived differences — unlike RGB or HSL.
Yes. Once the page is loaded, all conversion logic runs entirely in JavaScript in your browser. Furthermore, no internet connection is needed after the initial page load.

Related color tools

Every tool in this collection runs entirely in your browser. Furthermore, all tools are free to use with no account required.

Brand Color Finder

Find the exact hex colors used by 869+ global and regional brands. Furthermore, search by color to discover which brands use that hue.

Color Name Finder

Find the nearest named color for any hex value. Furthermore, see both the CSS name and the designer name side by side.

Colour Blindness Simulator

Simulate how any color appears across all 8 types of color vision deficiency. Moreover, see before-and-after swatches instantly.

Contrast Checker

Check WCAG AA and AAA contrast ratios with a live text preview. Furthermore, the tool suggests passing alternative colors automatically.

CSS Colour Namer

Find the nearest CSS named color for any hex input. Additionally, get a suggested CSS variable name and copy-ready code snippet.

CSS Gradient Builder

Build linear, radial or conic gradients visually. Furthermore, choose from 60+ mood-based presets and copy the CSS instantly.

Palette Generator

Generate a 5-color palette using 7 harmony rules. Moreover, see inline WCAG contrast scores for every color pair.

Tint & Shade Generator

Generate Tailwind-compatible tints and shades for any color. Additionally, export as CSS custom properties in one click.

Rate this tool

4.3
out of 5
181 ratings
5 ★
62%
4 ★
21%
3 ★
7%
2 ★
3%
1 ★
7%
How useful was this tool?