HEX naar HSL: #059669
Ook bekend als: Tailwind v3 emerald-600
Resultaat
#059669 → hsl(161 94% 30%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #059669. 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.0196 G = 0.5882 B = 0.4118
2. max, min, Δ
max = 0.5882 min = 0.0196 Δ = max − min = 0.5686
3. L
L = (max + min) / 2 = 0.3039 = 30.39%
4. S
S = Δ / (1 − |2L − 1|) = 0.9355 = 93.55%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.4118 − 0.0196) / 0.5686 + 2) = 161.38°
6. HSL
hsl(161.38 93.55% 30.39%)
Alle formaten
- HEX
- #059669
- RGB
- rgb(5 150 105)
- RGB (legacy)
- rgb(5, 150, 105)
- HSL
- hsl(161.38 93.55% 30.39%) → hsl(161 94% 30%)
- HWB
- hwb(161 2% 41%)
- OKLCH
- oklch(0.596 0.127 163.2) · oklch(59.6% 0.127 163.2)
- OKLab
- oklab(0.596 -0.122 0.037)
- Lab (D50)
- lab(54.82 -43.50 13.94)
- LCH (D50)
- lch(54.82 45.68 162.23)
- Display P3
- color(display-p3 0.2610 0.5793 0.4246)
- Linear sRGB
- color(srgb-linear 0.0015 0.3050 0.1413)
Gamut: sRGB en Display P3
#059669 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.128 en Display P3 van 0.176; deze kleur gebruikt 99% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #059669;
color: rgb(5 150 105);
color: hsl(161 94% 30%);
color: oklch(0.596 0.127 163.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.596 0.127 163.2);
}
/* arbitrary values */
class="text-[#059669] bg-[oklch(0.596_0.127_163.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2610 0.5793 0.4246); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #059669 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- emerald-600#009966
- seagreen#2E8B57
- teal-600#009689
- v3 teal-600#0D9488
- v3 green-600#16A34A
- darkcyan#008B8B
- v3 green-700#15803D
- forestgreen#228B22
Lichter en donkerder, dezelfde tint en chroma
- #2DA97B · oklch(0.656 0.127 163.2) · ΔL +0.06
- #008458 · oklch(0.536 0.127 163.2) · ΔL −0.06