Color Converter

Convert any color between HEX, RGB, HSL, HWB, and OKLCH instantly. Includes a live swatch and one-click copy for each format.

Runs in your browser — nothing uploaded
Color
#0F766E
HEX
#0F766E
RGB
rgb(15 118 110)
HSL
hsl(175 77% 26%)
HWB
hwb(175 6% 54%)
OKLCH
oklch(51.1% 0.086 186.4)

Use this free color converter to translate any color between HEX, RGB, HSL, HWB, and OKLCH at a glance. It is built for designers and developers who need to move colors between tools — Figma, CSS, Tailwind, design systems — without losing fidelity or hunting for the right format.

Private by design — your data never leaves your device

How to use it

No account, no upload — it all happens on your device.

1
Paste any color value into the input — HEX, RGB, HSL, or HWB.
2
Or click a sample swatch, or use the native color picker in the top-right.
3
The large swatch and every format card update instantly.
4
Click Copy on any card to grab that format for your CSS, design tool, or code.

Format cheat sheet

What each notation says about the same color.

FormatExample (teal accent)Best for
HEX#0F766ECSS, design tokens, anything compact and copy-friendly.
RGBrgb(15 118 110)Canvas / WebGL APIs, image editors, alpha compositing.
HSLhsl(173 78% 26%)Programmatic tweaks — hold hue, change lightness for variants.
HWBhwb(173 6% 54%)Mental model: pick a hue, then mix in white and black.
OKLCHoklch(48% 0.07 175)Modern, perceptually uniform — best for accessible palettes.

Why OKLCH is the modern default

Equal lightness numbers look equally bright.

In HSL, two colors with the same lightness value can look wildly different in actual brightness — pure yellow at 50% feels far brighter than pure blue at 50%. That makes it hard to build palettes that pass contrast checks.

OKLCH is based on the OKLab perceptual color space, so the first number (lightness) tracks how the human eye actually perceives brightness. Generating shades of a brand color, or ensuring all text in a palette meets WCAG 4.5:1, is far easier when you can keep lightness steady and only vary chroma and hue.

Browser support is broad in 2024+ (Chrome, Edge, Firefox, Safari 15.4+). For older targets, pair OKLCH with a HEX fallback.

When to use which in a design system

  • Source of truth: OKLCH in your design tokens. It survives lightness math without unexpected shifts.
  • Ship to CSS: OKLCH or RGB. HEX still works fine; just skip it if you also serve transparency.
  • Quick web look-ups: HEX. Pasting #0F766E into anything is universally understood.
  • Programmatic variants: HSL or OKLCH. Drop lightness 10–20% for a darker hover state without changing hue.

Frequently asked

Which color formats can I paste in?
HEX (with or without #, 3-digit or 6-digit), RGB (rgb(15 118 110) or rgb(15, 118, 110)), HSL (hsl(173 78% 26%)), and HWB (hwb(173 6% 54%)). The converter detects the format from the prefix and converts to every other format live.
What is OKLCH and why is it useful?
OKLCH is a modern, perceptually uniform color space supported by recent browsers. Two OKLCH colors with the same lightness look equally bright to the eye, which makes it great for building accessible palettes. We compute it from the converted RGB so you can paste OKLCH into modern CSS.
Are colors sent to a server?
No. All parsing and conversion runs entirely in your browser using plain JavaScript math. The picker uses the browser's native color input — no data leaves your device.

Related tools

QR Code GeneratorGenerate QR codes for URLs, text, Wi-Fi, and more — entirely in your browser. Download as PNG or SVG. No tracking, no uploads.Unix Timestamp ConverterConvert Unix timestamps to human-readable dates and back. Supports seconds and milliseconds, UTC and local time. All in your browser.CSV ↔ JSON ConverterConvert CSV to JSON or JSON to CSV in your browser. Auto-detect delimiter, header row, and types. No upload — your data stays private.