HEX to RGB: #016630
Also known as: Tailwind green-800
Result
#016630 → rgb(1 102 48)
Values are shown at full precision, so converting back gives exactly #016630. 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. HEX → pairs
#016630 → 01 | 66 | 30
2. base 16 → base 10
R = 01₁₆ = 0×16 + 1 = 1 G = 66₁₆ = 6×16 + 6 = 102 B = 30₁₆ = 3×16 + 0 = 48
3. RGB
rgb(1 102 48)
All formats
- HEX
- #016630
- RGB
- rgb(1 102 48)
- RGB (legacy)
- rgb(1, 102, 48)
- HSL
- hsl(147.92 98.06% 20.20%) → hsl(148 98% 20%)
- HWB
- hwb(148 0% 60%)
- OKLCH
- oklch(0.447 0.119 151.4) · oklch(44.7% 0.119 151.4)
- OKLab
- oklab(0.447 -0.104 0.057)
- Lab (D50)
- lab(37.32 -36.73 22.84)
- LCH (D50)
- lch(37.32 43.26 148.13)
- Display P3
- color(display-p3 0.1674 0.3937 0.2107)
- Linear sRGB
- color(srgb-linear 0.0003 0.1329 0.0296)
Gamut: sRGB and Display P3
#016630 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.119 and Display P3 reaches 0.166; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #016630;
color: rgb(1 102 48);
color: hsl(148 98% 20%);
color: oklch(0.447 0.119 151.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.447 0.119 151.4);
}
/* arbitrary values */
class="text-[#016630] bg-[oklch(0.447_0.119_151.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1674 0.3937 0.2107); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #016630 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 green-800#166534
- darkgreen#006400
- emerald-800#006045
- v3 lime-800#3F6212
- lime-800#3C6300
- v3 emerald-800#065F46
- green-900#0D542B
- v3 lime-900#365314
Lighter and darker, same hue and chroma
- #217841 · oklch(0.507 0.119 151.4) · ΔL +0.06
- #005520 · oklch(0.387 0.119 151.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?