HEX to RGB: #006045
Also known as: Tailwind emerald-800
Result
#006045 → rgb(0 96 69)
Values are shown at full precision, so converting back gives exactly #006045. 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
#006045 → 00 | 60 | 45
2. base 16 → base 10
R = 00₁₆ = 0×16 + 0 = 0 G = 60₁₆ = 6×16 + 0 = 96 B = 45₁₆ = 4×16 + 5 = 69
3. RGB
rgb(0 96 69)
All formats
- HEX
- #006045
- RGB
- rgb(0 96 69)
- RGB (legacy)
- rgb(0, 96, 69)
- HSL
- hsl(163.13 100.00% 18.82%) → hsl(163 100% 19%)
- HWB
- hwb(163 0% 62%)
- OKLCH
- oklch(0.434 0.090 165.9) · oklch(43.4% 0.090 165.9)
- OKLab
- oklab(0.434 -0.087 0.022)
- Lab (D50)
- lab(35.49 -31.17 8.25)
- LCH (D50)
- lch(35.49 32.24 165.17)
- Display P3
- color(display-p3 0.1550 0.3704 0.2776)
- Linear sRGB
- color(srgb-linear 0.0000 0.1170 0.0595)
Gamut: sRGB and Display P3
#006045 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.090 and Display P3 reaches 0.123; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #006045;
color: rgb(0 96 69);
color: hsl(163 100% 19%);
color: oklch(0.434 0.090 165.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.434 0.090 165.9);
}
/* arbitrary values */
class="text-[#006045] bg-[oklch(0.434_0.090_165.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1550 0.3704 0.2776); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #006045 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 emerald-800#065F46
- v3 green-800#166534
- teal-800#005F5A
- v3 teal-800#115E59
- green-800#016630
- v3 green-900#14532D
- green-900#0D542B
- emerald-900#004F3B
Lighter and darker, same hue and chroma
- #1F7155 · oklch(0.494 0.090 165.9) · ΔL +0.06
- #004F35 · oklch(0.374 0.090 165.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?