HEX naar HSL: #042F2E
Ook bekend als: Tailwind v3 teal-950
Resultaat
#042F2E → hsl(179 84% 10%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #042f2e. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.0157 G = 0.1843 B = 0.1804
2. max, min, Δ
max = 0.1843 min = 0.0157 Δ = max − min = 0.1686
3. L
L = (max + min) / 2 = 0.1000 = 10.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.8431 = 84.31%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.1804 − 0.0157) / 0.1686 + 2) = 178.60°
6. HSL
hsl(178.60 84.31% 10.00%)
Alle formaten
- HEX
- #042f2e
- RGB
- rgb(4 47 46)
- RGB (legacy)
- rgb(4, 47, 46)
- HSL
- hsl(178.60 84.31% 10.00%) → hsl(179 84% 10%)
- HWB
- hwb(179 2% 82%)
- OKLCH
- oklch(0.277 0.045 192.5) · oklch(27.7% 0.045 192.5)
- OKLab
- oklab(0.277 -0.044 -0.010)
- Lab (D50)
- lab(16.65 -14.87 -3.71)
- LCH (D50)
- lch(16.65 15.32 194.01)
- Display P3
- color(display-p3 0.0706 0.1811 0.1791)
- Linear sRGB
- color(srgb-linear 0.0012 0.0284 0.0273)
Gamut: sRGB en Display P3
#042F2E is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.048 en Display P3 van 0.064; deze kleur gebruikt 94% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #042f2e;
color: rgb(4 47 46);
color: hsl(179 84% 10%);
color: oklch(0.277 0.045 192.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.277 0.045 192.5);
}
/* arbitrary values */
class="text-[#042f2e] bg-[oklch(0.277_0.045_192.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0706 0.1811 0.1791); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #042f2e calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- teal-950#022F2E
- v3 emerald-950#022C22
- emerald-950#002C22
- mist-800#22292B
- v3 cyan-950#083344
- v3 gray-800#1F2937
- v3 green-950#052E16
- cyan-950#053345
Lichter en donkerder, dezelfde tint en chroma
- #173F3D · oklch(0.337 0.045 192.5) · ΔL +0.06
- #00201F · oklch(0.217 0.045 192.5) · ΔL −0.06