HSL in HEX: #006045
Auch bekannt als: Tailwind emerald-800
Ergebnis
hsl(163.13 100.00% 18.82%) → #006045
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #006045. 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 = 163.13°, S = 100.00%, L = 18.82%
2. C
C = (1 − |2L − 1|) × S = 0.37640
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.27057 (H / 60° = 2.7188, sector 2)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.37640, 0.27057) R = round((0.00000 + 0.00000) × 255) = 0 G = round((0.37640 + 0.00000) × 255) = 96 B = round((0.27057 + 0.00000) × 255) = 69
6. RGB → HEX
#006045
Alle Formate
- HEX
- #006045
- RGB
- rgb(0 96 69)
- RGB (legacy)
- rgb(0, 96, 69)
- HSL
- hsl(163.13 100.00% 18.82%) → hsl(163 100% 19%)
- HWB
- hwb(163 0% 62%)
- OKLCH
- oklch(0.434 0.090 165.9) · oklch(43.4% 0.090 165.9)
- OKLab
- oklab(0.434 -0.087 0.022)
- Lab (D50)
- lab(35.49 -31.17 8.25)
- LCH (D50)
- lch(35.49 32.24 165.17)
- Display P3
- color(display-p3 0.1550 0.3704 0.2776)
- Linear sRGB
- color(srgb-linear 0.0000 0.1170 0.0595)
Gamut: sRGB und Display P3
#006045 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.090, Display P3 von 0.123; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #006045;
color: rgb(0 96 69);
color: hsl(163 100% 19%);
color: oklch(0.434 0.090 165.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.434 0.090 165.9);
}
/* arbitrary values */
class="text-[#006045] bg-[oklch(0.434_0.090_165.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1550 0.3704 0.2776); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #006045 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 emerald-800#065F46
- v3 green-800#166534
- teal-800#005F5A
- v3 teal-800#115E59
- green-800#016630
- v3 green-900#14532D
- green-900#0D542B
- emerald-900#004F3B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #1F7155 · oklch(0.494 0.090 165.9) · ΔL +0.06
- #004F35 · oklch(0.374 0.090 165.9) · ΔL −0.06