RGB to HEX: #009966
Also known as: Tailwind emerald-600
Result
rgb(0 153 102) → #009966
Values are shown at full precision, so converting back gives exactly #009966. 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. base 10 → base 16
R = 0 = 0×16 + 0 → 00 G = 153 = 9×16 + 9 → 99 B = 102 = 6×16 + 6 → 66
2. pairs → HEX
00 99 66 → #009966
All formats
- 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 and Display P3
#009966 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.134 and Display P3 reaches 0.185; this color uses 100% of the sRGB chroma available.
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); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- 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
Lighter and darker, same hue and chroma
- #2CAC78 · oklch(0.663 0.134 160.9) · ΔL +0.06
- #008655 · oklch(0.543 0.134 160.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?