OKLCH to HEX: #16A34A

Also known as: Tailwind v3 green-600

Result

oklch(0.62705 0.16991 149.214) → #16A34A

Values are shown at full precision, so converting back gives exactly #16a34a. 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.62705 0.16991 149.214)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.14597
    b = C·sin H = 0.08697
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.587965
    m′ = L − 0.1056·a − 0.0639·b = 0.636905
    s′ = L − 0.0895·a − 1.2915·b = 0.527797
  4. 4. cube

    l = 0.587965³ = 0.203261
    m = 0.636905³ = 0.258360
    s = 0.527797³ = 0.147028
  5. 5. LMS → linear sRGB

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

    R = 0.08628 × 255 = 22.00 → 22
    G = 0.63921 × 255 = 163.00 → 163
    B = 0.29020 × 255 = 74.00 → 74
  7. 7. RGB → HEX

    #16A34A

All formats

HEX
#16a34a
RGB
rgb(22 163 74)
RGB (legacy)
rgb(22, 163, 74)
HSL
hsl(142.13 76.22% 36.27%) → hsl(142 76% 36%)
HWB
hwb(142 9% 36%)
OKLCH
oklch(0.627 0.170 149.2) · oklch(62.7% 0.170 149.2)
OKLab
oklab(0.627 -0.146 0.087)
Lab (D50)
lab(58.84 -51.08 35.43)
LCH (D50)
lch(58.84 62.16 145.26)
Display P3
color(display-p3 0.2967 0.6297 0.3300)
Linear sRGB
color(srgb-linear 0.0080 0.3663 0.0685)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #16a34a;
  color: rgb(22 163 74);
  color: hsl(142 76% 36%);
  color: oklch(0.627 0.170 149.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.627 0.170 149.2);
}
/* arbitrary values */
class="text-[#16a34a] bg-[oklch(0.627_0.170_149.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2967 0.6297 0.3300); }
}

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

  • #36B65C · oklch(0.687 0.170 149.2) · ΔL +0.06
  • #009038 · oklch(0.567 0.170 149.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?