HEX in HSL: #4ADE80
Auch bekannt als: Tailwind v3 green-400
Ergebnis
#4ADE80 → hsl(142 69% 58%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #4ade80. 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. RGB ÷ 255
R = 0.2902 G = 0.8706 B = 0.5020
2. max, min, Δ
max = 0.8706 min = 0.2902 Δ = max − min = 0.5804
3. L
L = (max + min) / 2 = 0.5804 = 58.04%
4. S
S = Δ / (1 − |2L − 1|) = 0.6916 = 69.16%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.5020 − 0.2902) / 0.5804 + 2) = 141.89°
6. HSL
hsl(141.89 69.16% 58.04%)
Alle Formate
- HEX
- #4ade80
- RGB
- rgb(74 222 128)
- RGB (legacy)
- rgb(74, 222, 128)
- HSL
- hsl(141.89 69.16% 58.04%) → hsl(142 69% 58%)
- HWB
- hwb(142 29% 13%)
- OKLCH
- oklch(0.800 0.182 151.7) · oklch(80.0% 0.182 151.7)
- OKLab
- oklab(0.800 -0.160 0.086)
- Lab (D50)
- lab(79.16 -56.20 34.17)
- LCH (D50)
- lch(79.16 65.77 148.70)
- Display P3
- color(display-p3 0.4685 0.8589 0.5377)
- Linear sRGB
- color(srgb-linear 0.0685 0.7305 0.2159)
Gamut: sRGB und Display P3
#4ADE80 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.212, Display P3 von 0.295; diese Farbe nutzt 86 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #4ade80;
color: rgb(74 222 128);
color: hsl(142 69% 58%);
color: oklch(0.800 0.182 151.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.800 0.182 151.7);
}
/* arbitrary values */
class="text-[#4ade80] bg-[oklch(0.800_0.182_151.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4685 0.8589 0.5377); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4ade80 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- green-400#05DF72
- emerald-400#00D492
- v3 emerald-400#34D399
- emerald-300#5EE9B5
- mediumspringgreen#00FA9A
- lightgreen#90EE90
- v3 emerald-300#6EE7B7
- green-300#7BF1A8
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #62F293 · oklch(0.860 0.182 151.7) · ΔL +0.06
- #2ECA6D · oklch(0.740 0.182 151.7) · ΔL −0.06