OKLCH to HEX: #BEF264

Also known as: Tailwind v3 lime-300

Result

oklch(0.89715 0.17858 126.665) → #BEF264

Values are shown at full precision, so converting back gives exactly #bef264. 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.89715 0.17858 126.665)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.10664
    b = C·sin H = 0.14325
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.885799
    m′ = L − 0.1056·a − 0.0639·b = 0.899260
    s′ = L − 0.0895·a − 1.2915·b = 0.721692
  4. 4. cube

    l = 0.885799³ = 0.695033
    m = 0.899260³ = 0.727203
    s = 0.721692³ = 0.375885
  5. 5. LMS → linear sRGB

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

    R = 0.74509 × 255 = 190.00 → 190
    G = 0.94902 × 255 = 242.00 → 242
    B = 0.39214 × 255 = 99.99 → 100
  7. 7. RGB → HEX

    #BEF264

All formats

HEX
#bef264
RGB
rgb(190 242 100)
RGB (legacy)
rgb(190, 242, 100)
HSL
hsl(81.97 84.52% 67.06%) → hsl(82 85% 67%)
HWB
hwb(82 39% 5%)
OKLCH
oklch(0.897 0.179 126.7) · oklch(89.7% 0.179 126.7)
OKLab
oklab(0.897 -0.107 0.143)
Lab (D50)
lab(89.81 -32.84 61.06)
LCH (D50)
lch(89.81 69.33 118.28)
Display P3
color(display-p3 0.7865 0.9432 0.4721)
Linear sRGB
color(srgb-linear 0.5149 0.8879 0.1274)

Gamut: sRGB and Display P3

#BEF264 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.230 and Display P3 reaches 0.269; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #bef264;
  color: rgb(190 242 100);
  color: hsl(82 85% 67%);
  color: oklch(0.897 0.179 126.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.897 0.179 126.7);
}
/* arbitrary values */
class="text-[#bef264] bg-[oklch(0.897_0.179_126.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7865 0.9432 0.4721); }
}

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

  • #D1FF79 · oklch(0.957 0.179 126.7) · ΔL +0.06
  • #ABDE4E · oklch(0.837 0.179 126.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?