HEX in HSL: #016630
Auch bekannt als: Tailwind green-800
Ergebnis
#016630 → hsl(148 98% 20%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #016630. 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.0039 G = 0.4000 B = 0.1882
2. max, min, Δ
max = 0.4000 min = 0.0039 Δ = max − min = 0.3961
3. L
L = (max + min) / 2 = 0.2020 = 20.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.9806 = 98.06%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.1882 − 0.0039) / 0.3961 + 2) = 147.92°
6. HSL
hsl(147.92 98.06% 20.20%)
Alle Formate
- HEX
- #016630
- RGB
- rgb(1 102 48)
- RGB (legacy)
- rgb(1, 102, 48)
- HSL
- hsl(147.92 98.06% 20.20%) → hsl(148 98% 20%)
- HWB
- hwb(148 0% 60%)
- OKLCH
- oklch(0.447 0.119 151.4) · oklch(44.7% 0.119 151.4)
- OKLab
- oklab(0.447 -0.104 0.057)
- Lab (D50)
- lab(37.32 -36.73 22.84)
- LCH (D50)
- lch(37.32 43.26 148.13)
- Display P3
- color(display-p3 0.1674 0.3937 0.2107)
- Linear sRGB
- color(srgb-linear 0.0003 0.1329 0.0296)
Gamut: sRGB und Display P3
#016630 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.119, Display P3 von 0.166; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #016630;
color: rgb(1 102 48);
color: hsl(148 98% 20%);
color: oklch(0.447 0.119 151.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.447 0.119 151.4);
}
/* arbitrary values */
class="text-[#016630] bg-[oklch(0.447_0.119_151.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1674 0.3937 0.2107); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #016630 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 green-800#166534
- darkgreen#006400
- emerald-800#006045
- v3 lime-800#3F6212
- lime-800#3C6300
- v3 emerald-800#065F46
- green-900#0D542B
- v3 lime-900#365314
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #217841 · oklch(0.507 0.119 151.4) · ΔL +0.06
- #005520 · oklch(0.387 0.119 151.4) · ΔL −0.06