OKLCH to HEX: #ADFF2F

Also known as: CSS greenyellow

Result

oklch(0.91305 0.23346 130.017) → #ADFF2F

Values are shown at full precision, so converting back gives exactly #adff2f. 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.91305 0.23346 130.017)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.15012
    b = C·sin H = 0.17880
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.892137
    m′ = L − 0.1056·a − 0.0639·b = 0.917480
    s′ = L − 0.0895·a − 1.2915·b = 0.695570
  4. 4. cube

    l = 0.892137³ = 0.710060
    m = 0.917480³ = 0.772306
    s = 0.695570³ = 0.336530
  5. 5. LMS → linear sRGB

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

    R = 0.67844 × 255 = 173.00 → 173
    G = 1.00000 × 255 = 255.00 → 255
    B = 0.18432 × 255 = 47.00 → 47
  7. 7. RGB → HEX

    #ADFF2F

All formats

HEX
#adff2f
RGB
rgb(173 255 47)
RGB (legacy)
rgb(173, 255, 47)
HSL
hsl(83.65 100.00% 59.22%) → hsl(84 100% 59%)
HWB
hwb(84 18% 0%)
OKLCH
oklch(0.913 0.233 130.0) · oklch(91.3% 0.233 130.0)
OKLab
oklab(0.913 -0.150 0.179)
Lab (D50)
lab(92.20 -46.41 80.45)
LCH (D50)
lch(92.20 92.88 119.98)
Display P3
color(display-p3 0.7492 0.9915 0.3582)
Linear sRGB
color(srgb-linear 0.4179 1.0000 0.0284)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #adff2f;
  color: rgb(173 255 47);
  color: hsl(84 100% 59%);
  color: oklch(0.913 0.233 130.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.913 0.233 130.0);
}
/* arbitrary values */
class="text-[#adff2f] bg-[oklch(0.913_0.233_130.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7492 0.9915 0.3582); }
}

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

  • #C0FF4E · oklch(0.973 0.233 130.0) · ΔL +0.06
  • #9AEB00 · oklch(0.853 0.233 130.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?