# HWB to OKLCH Color Format Converter

Convert HWB colors to OKLCH in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact OKLCH equivalent, rounded for CSS and computed with the culori library. When OKLCH cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

## Frequently asked questions

### Which formats can I convert between?

Ten formats: HEX, RGB, HSL, HWB, CIELAB (lab), CIE LCH (lch), OKLab, OKLCH, CMYK and Display P3. Any of them can be the source or the target, which gives 90 conversion directions. Results use modern CSS Color 4 syntax, such as rgb(255 136 0) or oklch(0.7442 0.1812 56.46).

### How do I enter the input color?

Enter the full CSS notation of the source format, such as hsl(32 100% 50%) or color(display-p3 1 0.5 0), or only its numbers, such as 32, 100%, 50% with HSL selected. Hex codes work with or without the #, in 3, 4, 6 or 8 digit form. The value must match the selected source format, so an rgb() value on an HSL page is rejected instead of being converted by mistake.

### How is CMYK converted?

culori has no CMYK mode, so the converter uses the standard naive formula on sRGB values from 0 to 1: K = 1 - max(R, G, B), C = (1 - R - K) / (1 - K), and the same for M and Y. The reverse direction is R = (1 - C) x (1 - K) and so on. This is not an ICC profile conversion, so it will not match the output of a specific press or paper; use it for screen approximations and rough specs.

### How do I write a CMYK input?

Use cmyk(0%, 47%, 100%, 0%), device-cmyk(0 0.47 1 0) or four bare numbers. Values with a percent sign are percentages; unitless values are read as fractions from 0 to 1, unless one of them is above 1, in which case all of them are read as percentages, so 0, 47, 100, 0 works as expected. CMYK output is always written as percentages with up to two decimals.

### What happens to colors outside the target gamut?

Lab, LCH, OKLab, OKLCH and Display P3 can describe colors that sRGB cannot show. When the target is HEX, RGB, HSL, HWB or CMYK, which are all sRGB, or Display P3, an out-of-gamut color is mapped with the CSS Color 4 algorithm, which lowers OKLCH chroma until the color fits, and the result carries a note. Lab, LCH, OKLab and OKLCH targets are unbounded and never mapped.

### Is transparency kept?

Yes, for every target except CMYK. An alpha value in the input, such as rgb(255 136 0 / 50%) or #ff880080, is written as / 0.5 inside CSS functions and as an 8-digit hex code. CMYK has no alpha channel, so the alpha is dropped there.

### How precise are the results?

RGB channels are rounded to whole numbers from 0 to 255; HSL, HWB and CMYK percentages and Lab and LCH values to two decimals; OKLab values, OKLCH lightness and chroma and Display P3 channels to four decimals; hues to two decimals. All calculations run at full double precision before rounding, so converting back and forth stays within rounding of the original.

### Which Lab and LCH does the converter use?

CIELAB and CIE LCH with the D50 white point, exactly as the CSS lab() and lch() functions define them, with Bradford adaptation from the D65 white of sRGB. Lightness runs from 0 to 100. OKLab and OKLCH are the perceptual spaces by Bjorn Ottosson used by CSS oklab() and oklch(), with lightness from 0 to 1.

### Can I convert several colors at once?

The page form converts one color at a time. Clients that call the tool directly can send up to 100 colors, one per line, and get one converted value per line in the same order. Each color can be at most 100 characters long.

### Why do grays show a hue of 0?

Neutral colors have no hue, which CSS can write as none. The converter writes 0 instead, so the value also works in tools that do not accept none. The hue has no visible effect when saturation or chroma is zero.

## Related tools

### [Color Format Converter](https://oneclick.pro/tool/color-format-converter/)

Convert a color between HEX, RGB, HSL, HWB, CIELAB, CIE LCH, OKLab, OKLCH, CMYK and Display P3. Pick the source and target formats, enter the value in CSS syntax or as bare numbers, and get a CSS-ready result computed with the culori library. Colors outside the target gamut are mapped the way CSS Color 4 specifies. Built for developers and designers who move colors between code and design tools.

### [HWB to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-hex/)

Convert HWB colors to HEX in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact HEX equivalent, rounded for CSS and computed with the culori library. When HEX cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

### [HWB to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-rgb/)

Convert HWB colors to RGB in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact RGB equivalent, rounded for CSS and computed with the culori library. When RGB cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

### [HWB to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-hsl/)

Convert HWB colors to HSL in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact HSL equivalent, rounded for CSS and computed with the culori library. When HSL cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

### [HWB to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-lab/)

Convert HWB colors to CIELAB in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact CIELAB equivalent, rounded for CSS and computed with the culori library. When CIELAB cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

### [HWB to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-lch/)

Convert HWB colors to CIE LCH in one step. Enter a HWB value in CSS syntax or as bare numbers and get the exact CIE LCH equivalent, rounded for CSS and computed with the culori library. When CIE LCH cannot show the color, it is mapped to the closest color inside the gamut, as CSS Color 4 specifies. Built for developers and designers who move colors between stylesheets, design tools and specs.

**Show all 90 related tools**

- [HWB to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-oklab/)
- [HWB to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-cmyk/)
- [HWB to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/hwb-to-p3/)
- [HEX to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-oklch/)
- [RGB to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-oklch/)
- [HSL to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-oklch/)
- [CIELAB to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-oklch/)
- [CIE LCH to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-oklch/)
- [OKLab to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-oklch/)
- [CMYK to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-oklch/)
- [Display P3 to OKLCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-oklch/)
- [HEX to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-rgb/)
- [HEX to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-hsl/)
- [HEX to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-hwb/)
- [HEX to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-lab/)
- [HEX to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-lch/)
- [HEX to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-oklab/)
- [HEX to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-cmyk/)
- [HEX to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/hex-to-p3/)
- [RGB to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-hex/)
- [RGB to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-hsl/)
- [RGB to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-hwb/)
- [RGB to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-lab/)
- [RGB to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-lch/)
- [RGB to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-oklab/)
- [RGB to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-cmyk/)
- [RGB to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/rgb-to-p3/)
- [HSL to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-hex/)
- [HSL to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-rgb/)
- [HSL to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-hwb/)
- [HSL to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-lab/)
- [HSL to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-lch/)
- [HSL to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-oklab/)
- [HSL to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-cmyk/)
- [HSL to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/hsl-to-p3/)
- [CIELAB to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-hex/)
- [CIELAB to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-rgb/)
- [CIELAB to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-hsl/)
- [CIELAB to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-hwb/)
- [CIELAB to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-lch/)
- [CIELAB to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-oklab/)
- [CIELAB to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-cmyk/)
- [CIELAB to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/lab-to-p3/)
- [CIE LCH to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-hex/)
- [CIE LCH to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-rgb/)
- [CIE LCH to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-hsl/)
- [CIE LCH to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-hwb/)
- [CIE LCH to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-lab/)
- [CIE LCH to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-oklab/)
- [CIE LCH to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-cmyk/)
- [CIE LCH to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/lch-to-p3/)
- [OKLab to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-hex/)
- [OKLab to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-rgb/)
- [OKLab to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-hsl/)
- [OKLab to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-hwb/)
- [OKLab to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-lab/)
- [OKLab to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-lch/)
- [OKLab to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-cmyk/)
- [OKLab to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklab-to-p3/)
- [OKLCH to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-hex/)
- [OKLCH to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-rgb/)
- [OKLCH to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-hsl/)
- [OKLCH to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-hwb/)
- [OKLCH to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-lab/)
- [OKLCH to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-lch/)
- [OKLCH to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-oklab/)
- [OKLCH to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-cmyk/)
- [OKLCH to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/oklch-to-p3/)
- [CMYK to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-hex/)
- [CMYK to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-rgb/)
- [CMYK to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-hsl/)
- [CMYK to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-hwb/)
- [CMYK to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-lab/)
- [CMYK to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-lch/)
- [CMYK to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-oklab/)
- [CMYK to Display P3 Color Format Converter](https://oneclick.pro/tool/color-format-converter/cmyk-to-p3/)
- [Display P3 to HEX Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-hex/)
- [Display P3 to RGB Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-rgb/)
- [Display P3 to HSL Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-hsl/)
- [Display P3 to HWB Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-hwb/)
- [Display P3 to CIELAB Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-lab/)
- [Display P3 to CIE LCH Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-lch/)
- [Display P3 to OKLab Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-oklab/)
- [Display P3 to CMYK Color Format Converter](https://oneclick.pro/tool/color-format-converter/p3-to-cmyk/)

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad The agent-ready plugin suite for WordPress.](https://sleekwp.com/?ref=oneclickpro)
