HEX in OKLCH: #7CCF00
Auch bekannt als: Tailwind lime-500
Ergebnis
#7CCF00 → oklch(0.771 0.216 132.5)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #7ccf00. 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: 124/255 = 0.48627 → 0.201556 (((x + 0.055) / 1.055)^2.4) G: 207/255 = 0.81176 → 0.623960 (((x + 0.055) / 1.055)^2.4) B: 0/255 = 0.00000 → 0.000000 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.417736 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.467440 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.193579
3. cube root
l′ = ∛0.417736 = 0.747539 m′ = ∛0.467440 = 0.776084 s′ = ∛0.193579 = 0.578477
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.77088 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.14550 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.15906
5. Oklab → OKLCH
C = √(a² + b²) = 0.21557 H = atan2(b, a) = 132.451° L = 0.77088
6. OKLCH
oklch(0.77088 0.21557 132.451) rounded: oklch(0.771 0.216 132.5)
Alle Formate
- HEX
- #7ccf00
- RGB
- rgb(124 207 0)
- RGB (legacy)
- rgb(124, 207, 0)
- HSL
- hsl(84.06 100.00% 40.59%) → hsl(84 100% 41%)
- HWB
- hwb(84 0% 19%)
- OKLCH
- oklch(0.771 0.216 132.5) · oklch(77.1% 0.216 132.5)
- OKLab
- oklab(0.771 -0.146 0.159)
- Lab (D50)
- lab(75.59 -45.66 72.89)
- LCH (D50)
- lch(75.59 86.01 122.07)
- Display P3
- color(display-p3 0.5625 0.8036 0.2443)
- Linear sRGB
- color(srgb-linear 0.2016 0.6240 0.0000)
Gamut: sRGB und Display P3
#7CCF00 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.216, Display P3 von 0.253; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #7ccf00;
color: rgb(124 207 0);
color: hsl(84 100% 41%);
color: oklch(0.771 0.216 132.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.771 0.216 132.5);
}
/* arbitrary values */
class="text-[#7ccf00] bg-[oklch(0.771_0.216_132.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5625 0.8036 0.2443); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7ccf00 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 lime-500#84CC16
- yellowgreen#9ACD32
- limegreen#32CD32
- green-500#00C950
- lime-400#9AE600
- green-400#05DF72
- v3 green-400#4ADE80
- v3 lime-400#A3E635
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #8FE331 · oklch(0.831 0.216 132.5) · ΔL +0.06
- #69BB00 · oklch(0.711 0.216 132.5) · ΔL −0.06