HSL in HEX: #32CD32
Auch bekannt als: CSS limegreen
Ergebnis
hsl(120.00 60.78% 50.00%) → #32CD32
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #32cd32. 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. input
H = 120.00°, S = 60.78%, L = 50.00%
2. C
C = (1 − |2L − 1|) × S = 0.60780
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 2.0000, sector 2)
4. m
m = L − C / 2 = 0.19610
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.60780, 0.00000) R = round((0.00000 + 0.19610) × 255) = 50 G = round((0.60780 + 0.19610) × 255) = 205 B = round((0.00000 + 0.19610) × 255) = 50
6. RGB → HEX
#32CD32
Alle Formate
- HEX
- #32cd32
- RGB
- rgb(50 205 50)
- RGB (legacy)
- rgb(50, 205, 50)
- HSL
- hsl(120.00 60.78% 50.00%) → hsl(120 61% 50%)
- HWB
- hwb(120 20% 20%)
- OKLCH
- oklch(0.742 0.229 142.8) · oklch(74.2% 0.229 142.8)
- OKLab
- oklab(0.742 -0.182 0.138)
- Lab (D50)
- lab(72.67 -61.87 60.06)
- LCH (D50)
- lch(72.67 86.22 135.85)
- Display P3
- color(display-p3 0.4025 0.7926 0.3011)
- Linear sRGB
- color(srgb-linear 0.0319 0.6105 0.0319)
Gamut: sRGB und Display P3
#32CD32 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.250, Display P3 von 0.300; diese Farbe nutzt 92 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #32cd32;
color: rgb(50 205 50);
color: hsl(120 61% 50%);
color: oklch(0.742 0.229 142.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.742 0.229 142.8);
}
/* arbitrary values */
class="text-[#32cd32] bg-[oklch(0.742_0.229_142.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4025 0.7926 0.3011); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #32cd32 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- green-500#00C950
- v3 green-500#22C55E
- lime-500#7CCF00
- v3 lime-500#84CC16
- green-400#05DF72
- v3 green-400#4ADE80
- yellowgreen#9ACD32
- emerald-400#00D492
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #4DE14A · oklch(0.802 0.229 142.8) · ΔL +0.06
- #03B910 · oklch(0.682 0.229 142.8) · ΔL −0.06