RGB to HEX: #008236
Also known as: Tailwind green-700
Result
rgb(0 130 54) → #008236
Values are shown at full precision, so converting back gives exactly #008236. 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 = 130 = 8×16 + 2 → 82 B = 54 = 3×16 + 6 → 36
2. pairs → HEX
00 82 36 → #008236
All formats
- HEX
- #008236
- RGB
- rgb(0 130 54)
- RGB (legacy)
- rgb(0, 130, 54)
- HSL
- hsl(144.92 100.00% 25.49%) → hsl(145 100% 25%)
- HWB
- hwb(145 0% 49%)
- OKLCH
- oklch(0.530 0.149 149.0) · oklch(53.0% 0.149 149.0)
- OKLab
- oklab(0.530 -0.128 0.077)
- Lab (D50)
- lab(47.27 -44.87 31.58)
- LCH (D50)
- lch(47.27 54.87 144.86)
- Display P3
- color(display-p3 0.2199 0.5019 0.2472)
- Linear sRGB
- color(srgb-linear 0.0000 0.2232 0.0369)
Gamut: sRGB and Display P3
#008236 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.149 and Display P3 reaches 0.209; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #008236;
color: rgb(0 130 54);
color: hsl(145 100% 25%);
color: oklch(0.530 0.149 149.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.530 0.149 149.0);
}
/* arbitrary values */
class="text-[#008236] bg-[oklch(0.530_0.149_149.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2199 0.5019 0.2472); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #008236 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 green-700#15803D
- green#008000
- forestgreen#228B22
- lime-700#497D00
- v3 lime-700#4D7C0F
- seagreen#2E8B57
- emerald-700#007A55
- v3 emerald-700#047857
Lighter and darker, same hue and chroma
- #269448 · oklch(0.590 0.149 149.0) · ΔL +0.06
- #007024 · oklch(0.470 0.149 149.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?