RGB to HEX: #3F6212
Also known as: Tailwind v3 lime-800
Result
rgb(63 98 18) → #3F6212
Values are shown at full precision, so converting back gives exactly #3f6212. 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 = 63 = 3×16 + 15 → 3F G = 98 = 6×16 + 2 → 62 B = 18 = 1×16 + 2 → 12
2. pairs → HEX
3F 62 12 → #3F6212
All formats
- HEX
- #3f6212
- RGB
- rgb(63 98 18)
- RGB (legacy)
- rgb(63, 98, 18)
- HSL
- hsl(86.25 68.97% 22.75%) → hsl(86 69% 23%)
- HWB
- hwb(86 7% 62%)
- OKLCH
- oklch(0.453 0.113 130.9) · oklch(45.3% 0.113 130.9)
- OKLab
- oklab(0.453 -0.074 0.085)
- Lab (D50)
- lab(37.66 -23.13 37.83)
- LCH (D50)
- lch(37.66 44.34 121.44)
- Display P3
- color(display-p3 0.2775 0.3807 0.1294)
- Linear sRGB
- color(srgb-linear 0.0497 0.1221 0.0060)
Gamut: sRGB and Display P3
#3F6212 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.124 and Display P3 reaches 0.145; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #3f6212;
color: rgb(63 98 18);
color: hsl(86 69% 23%);
color: oklch(0.453 0.113 130.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.453 0.113 130.9);
}
/* arbitrary values */
class="text-[#3f6212] bg-[oklch(0.453_0.113_130.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2775 0.3807 0.1294); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #3f6212 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-800#3C6300
- v3 green-800#166534
- green-800#016630
- darkgreen#006400
- darkolivegreen#556B2F
- lime-900#35530E
- v3 lime-900#365314
- emerald-800#006045
Lighter and darker, same hue and chroma
- #4F7427 · oklch(0.513 0.113 130.9) · ΔL +0.06
- #2F5100 · oklch(0.393 0.113 130.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?