OKLCH to HEX: #7BF1A8

Also known as: Tailwind green-300

Result

oklch(0.87043 0.14901 154.618) → #7BF1A8

Values are shown at full precision, so converting back gives exactly #7bf1a8. 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.87043 0.14901 154.618)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.13463
    b = C·sin H = 0.06387
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.830857
    m′ = L − 0.1056·a − 0.0639·b = 0.880563
    s′ = L − 0.0895·a − 1.2915·b = 0.799985
  4. 4. cube

    l = 0.830857³ = 0.573559
    m = 0.880563³ = 0.682780
    s = 0.799985³ = 0.511972
  5. 5. LMS → linear sRGB

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

    R = 0.48235 × 255 = 123.00 → 123
    G = 0.94510 × 255 = 241.00 → 241
    B = 0.65882 × 255 = 168.00 → 168
  7. 7. RGB → HEX

    #7BF1A8

All formats

HEX
#7bf1a8
RGB
rgb(123 241 168)
RGB (legacy)
rgb(123, 241, 168)
HSL
hsl(142.88 80.82% 71.37%) → hsl(143 81% 71%)
HWB
hwb(143 48% 5%)
OKLCH
oklch(0.870 0.149 154.6) · oklch(87.0% 0.149 154.6)
OKLab
oklab(0.870 -0.135 0.064)
Lab (D50)
lab(86.92 -47.03 24.67)
LCH (D50)
lch(86.92 53.10 152.32)
Display P3
color(display-p3 0.6004 0.9343 0.6826)
Linear sRGB
color(srgb-linear 0.1981 0.8796 0.3916)

Gamut: sRGB and Display P3

#7BF1A8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.217 and Display P3 reaches 0.265; this color uses 69% of the sRGB chroma available.

CSS snippets

.element {
  color: #7bf1a8;
  color: rgb(123 241 168);
  color: hsl(143 81% 71%);
  color: oklch(0.870 0.149 154.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.149 154.6);
}
/* arbitrary values */
class="text-[#7bf1a8] bg-[oklch(0.870_0.149_154.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6004 0.9343 0.6826); }
}

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

  • #90FFBB · oklch(0.930 0.149 154.6) · ΔL +0.06
  • #66DD95 · oklch(0.810 0.149 154.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?