HEX to HSL: #104E64
Also known as: Tailwind cyan-900
Result
#104E64 → hsl(196 72% 23%)
Values are shown at full precision, so converting back gives exactly #104e64. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. RGB ÷ 255
R = 0.0627 G = 0.3059 B = 0.3922
2. max, min, Δ
max = 0.3922 min = 0.0627 Δ = max − min = 0.3294
3. L
L = (max + min) / 2 = 0.2275 = 22.75%
4. S
S = Δ / (1 − |2L − 1|) = 0.7241 = 72.41%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0627 − 0.3059) / 0.3294 + 4) = 195.71°
6. HSL
hsl(195.71 72.41% 22.75%)
All formats
- HEX
- #104e64
- RGB
- rgb(16 78 100)
- RGB (legacy)
- rgb(16, 78, 100)
- HSL
- hsl(195.71 72.41% 22.75%) → hsl(196 72% 23%)
- HWB
- hwb(196 6% 61%)
- OKLCH
- oklch(0.397 0.070 227.2) · oklch(39.7% 0.070 227.2)
- OKLab
- oklab(0.397 -0.047 -0.051)
- Lab (D50)
- lab(30.28 -13.23 -18.68)
- LCH (D50)
- lch(30.28 22.89 234.69)
- Display P3
- color(display-p3 0.1418 0.3012 0.3836)
- Linear sRGB
- color(srgb-linear 0.0052 0.0762 0.1274)
Gamut: sRGB and Display P3
#104E64 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.077 and Display P3 reaches 0.101; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #104e64;
color: rgb(16 78 100);
color: hsl(196 72% 23%);
color: oklch(0.397 0.070 227.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.397 0.070 227.2);
}
/* arbitrary values */
class="text-[#104e64] bg-[oklch(0.397_0.070_227.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1418 0.3012 0.3836); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #104e64 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 cyan-900#164E63
- v3 sky-900#0C4A6E
- sky-900#024A70
- darkslategray#2F4F4F
- v3 teal-900#134E4A
- slate-700#314158
- teal-900#0B4F4A
- v3 slate-700#334155
Lighter and darker, same hue and chroma
- #255F75 · oklch(0.457 0.070 227.2) · ΔL +0.06
- #003E53 · oklch(0.337 0.070 227.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?