Pinatool

Color Converter

Convert between HEX, RGB, HSL, HWB, OKLCH, OKLab, CIELAB, LCH, CMYK, and Display P3 instantly. Adjust channels with live sliders, preview contrast on light and dark surfaces, and copy ready-to-use CSS syntax.

On Light Background

Aa

#14b8a6

On Dark Background

Aa

#14b8a6

Converted CSS & design formats

Click any format card to copy the ready-to-use color value.

Try common input syntaxes

Paste legacy comma-separated values, modern space-separated CSS syntax, Lab, LCH, HWB, OKLab, Display P3, or named HTML colors.

Modern CSS variable

--color: oklch(70.38% 0.123 182.5);

How It Works

1

Paste or Pick Any Color

Enter a HEX code, RGB, HSL, HWB, OKLCH, OKLab, CIELAB, LCH, CMYK, Display P3, or named CSS color—or choose a shade directly from the color picker.

2

Fine-Tune Channels & Opacity

Use the interactive RGBA sliders to tweak individual Red, Green, Blue, or Alpha values while watching all 10 formats update live.

3

Copy Ready-to-Use Code

Click any format card or copy the generated modern CSS custom property in one click.

Color Converter Key Features

Modern CSS Color Spaces

Convert between classic HEX, RGB, HSL, and HWB and modern CSS Color 4 formats including OKLCH, OKLab, CIELAB, LCH, and Display P3.

Alpha & Print Reference

Preserves alpha transparency across 8-digit HEX and modern slash syntax, plus provides instant CMYK approximations for print mockups.

Live Light/Dark Preview & RGBA Sliders

Preview your Aa swatch in real time on light and dark surfaces over a transparency checkerboard, adjust RGBA sliders, and export a ready-to-use CSS variable.

Frequently Asked Questions

How do I convert between HEX, RGB, HSL, and OKLCH?

Paste any 3-, 6-, or 8-digit HEX code, RGB, HSL, HWB, OKLCH, OKLab, CIELAB, LCH, CMYK, Display P3, or named CSS color into the input field and press Enter or click Convert. All 10 output formats update immediately for one-click copying.

Why use OKLCH instead of HSL in modern CSS?

OKLCH is designed around human visual perception. Unlike HSL, where different hues at the same lightness percentage can look noticeably brighter or darker, OKLCH keeps perceived lightness consistent across hues—making accessible hover states and theme scales far more predictable.

What is Display P3 and when should I use it?

Display P3 is a wide-gamut color space supported by modern monitors, laptops, and mobile screens that can render roughly 25% more vibrant colors than standard sRGB. Use Display P3 in CSS when targeting modern displays for richer greens, reds, and oranges.

Does the converter support transparent colors (8-digit HEX and alpha channels)?

Yes. You can paste an 8-digit HEX (#rrggbbaa), rgba(), hsla(), or modern space-separated CSS syntax with a slash (such as rgb(37 99 235 / 80%)), or adjust the Alpha (0–1) slider directly while previewing opacity over the checkerboard.

Can I use the CMYK values for commercial printing?

Use the CMYK output as a quick design reference and starting point for mockups. Because commercial offset and digital presses depend on paper stock, ink limits, and specific ICC color profiles (such as FOGRA39 or GRACoL), always finalize print files using your print shop's ICC profile.