OKLCH to HEX: #C800DE

Also known as: Tailwind fuchsia-600

Result

oklch(0.59847 0.28310 322.758) → #C800DE

Values are shown at full precision, so converting back gives exactly #c800de. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    oklch(0.59847 0.28310 322.758)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.22537
    b = C·sin H = -0.17133
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.650820
    m′ = L − 0.1056·a − 0.0639·b = 0.585619
    s′ = L − 0.0895·a − 1.2915·b = 0.799569
  4. 4. cube

    l = 0.650820³ = 0.275666
    m = 0.585619³ = 0.200838
    s = 0.799569³ = 0.511174
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.577571
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.000000
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.730458
  6. 6. linear → sRGB, × 255

    R = 0.78431 × 255 = 200.00 → 200
    G = 0.00000 × 255 = 0.00 → 0
    B = 0.87059 × 255 = 222.00 → 222
  7. 7. RGB → HEX

    #C800DE

All formats

HEX
#c800de
RGB
rgb(200 0 222)
RGB (legacy)
rgb(200, 0, 222)
HSL
hsl(294.05 100.00% 43.53%) → hsl(294 100% 44%)
HWB
hwb(294 0% 13%)
OKLCH
oklch(0.598 0.283 322.8) · oklch(59.8% 0.283 322.8)
OKLab
oklab(0.598 0.225 -0.171)
Lab (D50)
lab(48.61 80.33 -61.13)
LCH (D50)
lch(48.61 100.94 322.73)
Display P3
color(display-p3 0.7187 0.1481 0.8406)
Linear sRGB
color(srgb-linear 0.5776 0.0000 0.7305)

Gamut: sRGB and Display P3

#C800DE is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.283 and Display P3 reaches 0.307; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #c800de;
  color: rgb(200 0 222);
  color: hsl(294 100% 44%);
  color: oklch(0.598 0.283 322.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.598 0.283 322.8);
}
/* arbitrary values */
class="text-[#c800de] bg-[oklch(0.598_0.283_322.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7187 0.1481 0.8406); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c800de calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #DD30F3 · oklch(0.658 0.283 322.8) · ΔL +0.06
  • #B400CA · oklch(0.538 0.283 322.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?