OKLCH to HEX: #059669

Also known as: Tailwind v3 emerald-600

Result

oklch(0.59597 0.12742 163.225) → #059669

Values are shown at full precision, so converting back gives exactly #059669. 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.59597 0.12742 163.225)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.12200
    b = C·sin H = 0.03678
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.555554
    m′ = L − 0.1056·a − 0.0639·b = 0.606500
    s′ = L − 0.0895·a − 1.2915·b = 0.559392
  4. 4. cube

    l = 0.555554³ = 0.171466
    m = 0.606500³ = 0.223096
    s = 0.559392³ = 0.175045
  5. 5. LMS → linear sRGB

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

    R = 0.01958 × 255 = 4.99 → 5
    G = 0.58823 × 255 = 150.00 → 150
    B = 0.41176 × 255 = 105.00 → 105
  7. 7. RGB → HEX

    #059669

All formats

HEX
#059669
RGB
rgb(5 150 105)
RGB (legacy)
rgb(5, 150, 105)
HSL
hsl(161.38 93.55% 30.39%) → hsl(161 94% 30%)
HWB
hwb(161 2% 41%)
OKLCH
oklch(0.596 0.127 163.2) · oklch(59.6% 0.127 163.2)
OKLab
oklab(0.596 -0.122 0.037)
Lab (D50)
lab(54.82 -43.50 13.94)
LCH (D50)
lch(54.82 45.68 162.23)
Display P3
color(display-p3 0.2610 0.5793 0.4246)
Linear sRGB
color(srgb-linear 0.0015 0.3050 0.1413)

Gamut: sRGB and Display P3

#059669 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.128 and Display P3 reaches 0.176; this color uses 99% of the sRGB chroma available.

CSS snippets

.element {
  color: #059669;
  color: rgb(5 150 105);
  color: hsl(161 94% 30%);
  color: oklch(0.596 0.127 163.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.596 0.127 163.2);
}
/* arbitrary values */
class="text-[#059669] bg-[oklch(0.596_0.127_163.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2610 0.5793 0.4246); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #059669 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

  • #2DA97B · oklch(0.656 0.127 163.2) · ΔL +0.06
  • #008458 · oklch(0.536 0.127 163.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?