HEX to OKLCH: #BEF264
Also known as: Tailwind v3 lime-300
Result
#BEF264 → oklch(0.897 0.179 126.7)
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. sRGB → linear
R: 190/255 = 0.74510 → 0.514918 (((x + 0.055) / 1.055)^2.4) G: 242/255 = 0.94902 → 0.887923 (((x + 0.055) / 1.055)^2.4) B: 100/255 = 0.39216 → 0.127438 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.695038 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.727208 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.375896
3. cube root
l′ = ∛0.695038 = 0.885801 m′ = ∛0.727208 = 0.899262 s′ = ∛0.375896 = 0.721699
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.89715 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.10663 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.14324
5. Oklab → OKLCH
C = √(a² + b²) = 0.17858 H = atan2(b, a) = 126.665° L = 0.89715
6. OKLCH
oklch(0.89715 0.17858 126.665) rounded: oklch(0.897 0.179 126.7)
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).
- lime-300#BBF451
- palegreen#98FB98
- v3 lime-400#A3E635
- greenyellow#ADFF2F
- lightgreen#90EE90
- lime-200#D8F999
- v3 lime-200#D9F99D
- lime-400#9AE600
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
Guides: What is OKLCH?