HEX naar HSL: #009966
Ook bekend als: Tailwind emerald-600
Resultaat
#009966 → hsl(160 100% 30%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #009966. 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.0000 G = 0.6000 B = 0.4000
2. max, min, Δ
max = 0.6000 min = 0.0000 Δ = max − min = 0.6000
3. L
L = (max + min) / 2 = 0.3000 = 30.00%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.4000 − 0.0000) / 0.6000 + 2) = 160.00°
6. HSL
hsl(160.00 100.00% 30.00%)
Alle formaten
- HEX
- #009966
- RGB
- rgb(0 153 102)
- RGB (legacy)
- rgb(0, 153, 102)
- HSL
- hsl(160.00 100.00% 30.00%) → hsl(160 100% 30%)
- HWB
- hwb(160 0% 40%)
- OKLCH
- oklch(0.603 0.134 160.9) · oklch(60.3% 0.134 160.9)
- OKLab
- oklab(0.603 -0.127 0.044)
- Lab (D50)
- lab(55.73 -45.32 16.82)
- LCH (D50)
- lch(55.73 48.34 159.64)
- Display P3
- color(display-p3 0.2637 0.5909 0.4156)
- Linear sRGB
- color(srgb-linear 0.0000 0.3185 0.1329)
Gamut: sRGB en Display P3
#009966 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.134 en Display P3 van 0.185; deze kleur gebruikt 100% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #009966;
color: rgb(0 153 102);
color: hsl(160 100% 30%);
color: oklch(0.603 0.134 160.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.603 0.134 160.9);
}
/* arbitrary values */
class="text-[#009966] bg-[oklch(0.603_0.134_160.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2637 0.5909 0.4156); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #009966 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 emerald-600#059669
- seagreen#2E8B57
- v3 green-600#16A34A
- teal-600#009689
- v3 teal-600#0D9488
- green-600#00A63E
- forestgreen#228B22
- v3 green-700#15803D
Lichter en donkerder, dezelfde tint en chroma
- #2CAC78 · oklch(0.663 0.134 160.9) · ΔL +0.06
- #008655 · oklch(0.543 0.134 160.9) · ΔL −0.06