HSL in HEX: #047857
Auch bekannt als: Tailwind v3 emerald-700
Ergebnis
hsl(162.93 93.55% 24.31%) → #047857
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #047857. 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 = 162.93°, S = 93.55%, L = 24.31%
2. C
C = (1 − |2L − 1|) × S = 0.45484
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.32544 (H / 60° = 2.7155, sector 2)
4. m
m = L − C / 2 = 0.01568
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.45484, 0.32544) R = round((0.00000 + 0.01568) × 255) = 4 G = round((0.45484 + 0.01568) × 255) = 120 B = round((0.32544 + 0.01568) × 255) = 87
6. RGB → HEX
#047857
Alle Formate
- HEX
- #047857
- RGB
- rgb(4 120 87)
- RGB (legacy)
- rgb(4, 120, 87)
- HSL
- hsl(162.93 93.55% 24.31%) → hsl(163 94% 24%)
- HWB
- hwb(163 2% 53%)
- OKLCH
- oklch(0.508 0.105 165.6) · oklch(50.8% 0.105 165.6)
- OKLab
- oklab(0.508 -0.102 0.026)
- Lab (D50)
- lab(44.33 -36.23 9.79)
- LCH (D50)
- lch(44.33 37.52 164.88)
- Display P3
- color(display-p3 0.2039 0.4633 0.3499)
- Linear sRGB
- color(srgb-linear 0.0012 0.1878 0.0953)
Gamut: sRGB und Display P3
#047857 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.106, Display P3 von 0.145; diese Farbe nutzt 99 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #047857;
color: rgb(4 120 87);
color: hsl(163 94% 24%);
color: oklch(0.508 0.105 165.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.508 0.105 165.6);
}
/* arbitrary values */
class="text-[#047857] bg-[oklch(0.508_0.105_165.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2039 0.4633 0.3499); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #047857 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- emerald-700#007A55
- teal-700#00786F
- v3 teal-700#0F766E
- v3 green-700#15803D
- green-700#008236
- teal#008080
- seagreen#2E8B57
- v3 green-800#166534
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #278A68 · oklch(0.568 0.105 165.6) · ΔL +0.06
- #006647 · oklch(0.448 0.105 165.6) · ΔL −0.06