HEX to HSL: #1A2E05
Also known as: Tailwind v3 lime-950
Result
#1A2E05 → hsl(89 80% 10%)
Values are shown at full precision, so converting back gives exactly #1a2e05. 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.1020 G = 0.1804 B = 0.0196
2. max, min, Δ
max = 0.1804 min = 0.0196 Δ = max − min = 0.1608
3. L
L = (max + min) / 2 = 0.1000 = 10.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.8039 = 80.39%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0196 − 0.1020) / 0.1608 + 2) = 89.27°
6. HSL
hsl(89.27 80.39% 10.00%)
All formats
- HEX
- #1a2e05
- RGB
- rgb(26 46 5)
- RGB (legacy)
- rgb(26, 46, 5)
- HSL
- hsl(89.27 80.39% 10.00%) → hsl(89 80% 10%)
- HWB
- hwb(89 2% 82%)
- OKLCH
- oklch(0.274 0.069 132.1) · oklch(27.4% 0.069 132.1)
- OKLab
- oklab(0.274 -0.046 0.051)
- Lab (D50)
- lab(16.49 -14.56 21.11)
- LCH (D50)
- lch(16.49 25.65 124.60)
- Display P3
- color(display-p3 0.1196 0.1784 0.0454)
- Linear sRGB
- color(srgb-linear 0.0103 0.0273 0.0015)
Gamut: sRGB and Display P3
#1A2E05 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.076 and Display P3 reaches 0.089; this color uses 90% of the sRGB chroma available.
CSS snippets
.element {
color: #1a2e05;
color: rgb(26 46 5);
color: hsl(89 80% 10%);
color: oklch(0.274 0.069 132.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.274 0.069 132.1);
}
/* arbitrary values */
class="text-[#1a2e05] bg-[oklch(0.274_0.069_132.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1196 0.1784 0.0454); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1a2e05 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-950#192E03
- v3 green-950#052E16
- green-950#032E15
- v3 emerald-950#022C22
- emerald-950#002C22
- olive-800#2B2B22
- v3 teal-950#042F2E
- teal-950#022F2E
Lighter and darker, same hue and chroma
- #293E15 · oklch(0.334 0.069 132.1) · ΔL +0.06
- #0C1F00 · oklch(0.214 0.069 132.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?