HEX in HSL: #228B22
Auch bekannt als: CSS forestgreen
Ergebnis
#228B22 → hsl(120 61% 34%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #228b22. 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.1333 G = 0.5451 B = 0.1333
2. max, min, Δ
max = 0.5451 min = 0.1333 Δ = max − min = 0.4118
3. L
L = (max + min) / 2 = 0.3392 = 33.92%
4. S
S = Δ / (1 − |2L − 1|) = 0.6069 = 60.69%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.1333 − 0.1333) / 0.4118 + 2) = 120.00°
6. HSL
hsl(120.00 60.69% 33.92%)
Alle Formate
- HEX
- #228b22
- RGB
- rgb(34 139 34)
- RGB (legacy)
- rgb(34, 139, 34)
- HSL
- hsl(120.00 60.69% 33.92%) → hsl(120 61% 34%)
- HWB
- hwb(120 13% 45%)
- OKLCH
- oklch(0.558 0.169 142.9) · oklch(55.8% 0.169 142.9)
- OKLab
- oklab(0.558 -0.135 0.102)
- Lab (D50)
- lab(50.64 -45.72 44.03)
- LCH (D50)
- lch(50.64 63.47 136.08)
- Display P3
- color(display-p3 0.2694 0.5372 0.2014)
- Linear sRGB
- color(srgb-linear 0.0160 0.2582 0.0160)
Gamut: sRGB und Display P3
#228B22 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.187, Display P3 von 0.226; diese Farbe nutzt 90 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #228b22;
color: rgb(34 139 34);
color: hsl(120 61% 34%);
color: oklch(0.558 0.169 142.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.558 0.169 142.9);
}
/* arbitrary values */
class="text-[#228b22] bg-[oklch(0.558_0.169_142.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2694 0.5372 0.2014); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #228b22 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- green-700#008236
- green#008000
- lime-700#497D00
- v3 green-700#15803D
- v3 lime-700#4D7C0F
- seagreen#2E8B57
- olivedrab#6B8E23
- v3 green-600#16A34A
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #399E37 · oklch(0.618 0.169 142.9) · ΔL +0.06
- #007904 · oklch(0.498 0.169 142.9) · ΔL −0.06