HSL in HEX: #022F2E
Auch bekannt als: Tailwind teal-950
Ergebnis
hsl(178.67 91.84% 9.61%) → #022F2E
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #022f2e. 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 = 178.67°, S = 91.84%, L = 9.61%
2. C
C = (1 − |2L − 1|) × S = 0.17652
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.17260 (H / 60° = 2.9778, sector 2)
4. m
m = L − C / 2 = 0.00784
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.17652, 0.17260) R = round((0.00000 + 0.00784) × 255) = 2 G = round((0.17652 + 0.00784) × 255) = 47 B = round((0.17260 + 0.00784) × 255) = 46
6. RGB → HEX
#022F2E
Alle Formate
- HEX
- #022f2e
- RGB
- rgb(2 47 46)
- RGB (legacy)
- rgb(2, 47, 46)
- HSL
- hsl(178.67 91.84% 9.61%) → hsl(179 92% 10%)
- HWB
- hwb(179 1% 82%)
- OKLCH
- oklch(0.277 0.046 192.5) · oklch(27.7% 0.046 192.5)
- OKLab
- oklab(0.277 -0.045 -0.010)
- Lab (D50)
- lab(16.59 -15.31 -3.82)
- LCH (D50)
- lch(16.59 15.78 194.00)
- Display P3
- color(display-p3 0.0661 0.1810 0.1790)
- Linear sRGB
- color(srgb-linear 0.0006 0.0284 0.0273)
Gamut: sRGB und Display P3
#022F2E 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.047, Display P3 von 0.064; diese Farbe nutzt 97 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #022f2e;
color: rgb(2 47 46);
color: hsl(179 92% 10%);
color: oklch(0.277 0.046 192.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.277 0.046 192.5);
}
/* arbitrary values */
class="text-[#022f2e] bg-[oklch(0.277_0.046_192.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0661 0.1810 0.1790); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #022f2e calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 teal-950#042F2E
- v3 emerald-950#022C22
- emerald-950#002C22
- mist-800#22292B
- v3 cyan-950#083344
- v3 green-950#052E16
- v3 gray-800#1F2937
- cyan-950#053345
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #153F3D · oklch(0.337 0.046 192.5) · ΔL +0.06
- #00201F · oklch(0.217 0.046 192.5) · ΔL −0.06