HEX in OKLCH: #BEF264
Auch bekannt als: Tailwind v3 lime-300
Ergebnis
#BEF264 → oklch(0.897 0.179 126.7)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #bef264. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
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)
Alle Formate
- 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 und Display P3
#BEF264 ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.230, Display P3 von 0.269; diese Farbe nutzt 78 % der verfügbaren sRGB-Chroma.
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); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- lime-300#BBF451
- palegreen#98FB98
- v3 lime-400#A3E635
- greenyellow#ADFF2F
- lightgreen#90EE90
- lime-200#D8F999
- v3 lime-200#D9F99D
- lime-400#9AE600
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #D1FF79 · oklch(0.957 0.179 126.7) · ΔL +0.06
- #ABDE4E · oklch(0.837 0.179 126.7) · ΔL −0.06