OKLCH to HEX: #D9F99D
Also known as: Tailwind v3 lime-200
Result
oklch(0.93823 0.12166 124.321) → #D9F99D
Values are shown at full precision, so converting back gives exactly #d9f99d. 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. input
oklch(0.93823 0.12166 124.321)
2. OKLCH → Oklab
a = C·cos H = -0.06860 b = C·sin H = 0.10048
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.932727 m′ = L − 0.1056·a − 0.0639·b = 0.939055 s′ = L − 0.0895·a − 1.2915·b = 0.814602
4. cube
l = 0.932727³ = 0.811452 m = 0.939055³ = 0.828082 s = 0.814602³ = 0.540551
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.693877 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.947315 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.337160
6. linear → sRGB, × 255
R = 0.85098 × 255 = 217.00 → 217 G = 0.97647 × 255 = 249.00 → 249 B = 0.61568 × 255 = 157.00 → 157
7. RGB → HEX
#D9F99D
All formats
- HEX
- #d9f99d
- RGB
- rgb(217 249 157)
- RGB (legacy)
- rgb(217, 249, 157)
- HSL
- hsl(80.87 88.46% 79.61%) → hsl(81 88% 80%)
- HWB
- hwb(81 62% 2%)
- OKLCH
- oklch(0.938 0.122 124.3) · oklch(93.8% 0.122 124.3)
- OKLab
- oklab(0.938 -0.069 0.100)
- Lab (D50)
- lab(94.05 -21.67 40.57)
- LCH (D50)
- lch(94.05 45.99 118.11)
- Display P3
- color(display-p3 0.8750 0.9726 0.6557)
- Linear sRGB
- color(srgb-linear 0.6939 0.9473 0.3372)
Gamut: sRGB and Display P3
#D9F99D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.185 and Display P3 reaches 0.202; this color uses 66% of the sRGB chroma available.
CSS snippets
.element {
color: #d9f99d;
color: rgb(217 249 157);
color: hsl(81 88% 80%);
color: oklch(0.938 0.122 124.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.938 0.122 124.3);
}
/* arbitrary values */
class="text-[#d9f99d] bg-[oklch(0.938_0.122_124.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8750 0.9726 0.6557); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d9f99d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-200#D8F999
- v3 yellow-200#FEF08A
- yellow-200#FFF085
- khaki#F0E68C
- palegoldenrod#EEE8AA
- v3 amber-200#FDE68A
- amber-200#FEE685
- lime-100#ECFCCA
Lighter and darker, same hue and chroma
- #EDFFB0 · oklch(0.998 0.122 124.3) · ΔL +0.06
- #C6E58A · oklch(0.878 0.122 124.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?