OKLCH to HEX: #7FFF00

Also known as: CSS chartreuse

Result

oklch(0.89026 0.26480 136.007) → #7FFF00

Values are shown at full precision, so converting back gives exactly #7fff00. 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.89026 0.26480 136.007)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.19050
    b = C·sin H = 0.18392
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.854447
    m′ = L − 0.1056·a − 0.0639·b = 0.898626
    s′ = L − 0.0895·a − 1.2915·b = 0.669774
  4. 4. cube

    l = 0.854447³ = 0.623815
    m = 0.898626³ = 0.725665
    s = 0.669774³ = 0.300459
  5. 5. LMS → linear sRGB

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

    R = 0.49805 × 255 = 127.00 → 127
    G = 0.99999 × 255 = 255.00 → 255
    B = 0.00005 × 255 = 0.01 → 0
  7. 7. RGB → HEX

    #7FFF00

All formats

HEX
#7fff00
RGB
rgb(127 255 0)
RGB (legacy)
rgb(127, 255, 0)
HSL
hsl(90.12 100.00% 50.00%) → hsl(90 100% 50%)
HWB
hwb(90 0% 0%)
OKLCH
oklch(0.890 0.265 136.0) · oklch(89.0% 0.265 136.0)
OKLab
oklab(0.890 -0.191 0.184)
Lab (D50)
lab(90.05 -61.49 83.86)
LCH (D50)
lch(90.05 103.98 126.25)
Display P3
color(display-p3 0.6279 0.9884 0.3056)
Linear sRGB
color(srgb-linear 0.2122 1.0000 0.0000)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #7fff00;
  color: rgb(127 255 0);
  color: hsl(90 100% 50%);
  color: oklch(0.890 0.265 136.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.890 0.265 136.0);
}
/* arbitrary values */
class="text-[#7fff00] bg-[oklch(0.890_0.265_136.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6279 0.9884 0.3056); }
}

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

  • #93FF39 · oklch(0.950 0.265 136.0) · ΔL +0.06
  • #6BEA00 · oklch(0.830 0.265 136.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?