HEX in HSL: #006045
Auch bekannt als: Tailwind emerald-800
Ergebnis
#006045 → hsl(163 100% 19%)
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. RGB ÷ 255
R = 0.0000 G = 0.3765 B = 0.2706
2. max, min, Δ
max = 0.3765 min = 0.0000 Δ = max − min = 0.3765
3. L
L = (max + min) / 2 = 0.1882 = 18.82%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.2706 − 0.0000) / 0.3765 + 2) = 163.13°
6. HSL
hsl(163.13 100.00% 18.82%)
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