HEX to RGB: #7B3306
Also known as: Tailwind amber-900
Result
#7B3306 → rgb(123 51 6)
Values are shown at full precision, so converting back gives exactly #7b3306. 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
#7B3306 → 7B | 33 | 06
2. base 16 → base 10
R = 7B₁₆ = 7×16 + 11 = 123 G = 33₁₆ = 3×16 + 3 = 51 B = 06₁₆ = 0×16 + 6 = 6
3. RGB
rgb(123 51 6)
All formats
- HEX
- #7b3306
- RGB
- rgb(123 51 6)
- RGB (legacy)
- rgb(123, 51, 6)
- HSL
- hsl(23.08 90.70% 25.29%) → hsl(23 91% 25%)
- HWB
- hwb(23 2% 52%)
- OKLCH
- oklch(0.415 0.113 45.9) · oklch(41.5% 0.113 45.9)
- OKLab
- oklab(0.415 0.078 0.081)
- Lab (D50)
- lab(31.33 30.43 40.29)
- LCH (D50)
- lch(31.33 50.49 52.93)
- Display P3
- color(display-p3 0.4477 0.2168 0.0819)
- Linear sRGB
- color(srgb-linear 0.1981 0.0331 0.0018)
Gamut: sRGB and Display P3
#7B3306 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.117 and Display P3 reaches 0.133; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #7b3306;
color: rgb(123 51 6);
color: hsl(23 91% 25%);
color: oklch(0.415 0.113 45.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.415 0.113 45.9);
}
/* arbitrary values */
class="text-[#7b3306] bg-[oklch(0.415_0.113_45.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4477 0.2168 0.0819); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7b3306 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-900#78350F
- v3 orange-900#7C2D12
- orange-900#7E2A0C
- yellow-900#733E0A
- v3 yellow-900#713F12
- v3 red-900#7F1D1D
- red-900#82181A
- saddlebrown#8B4513
Lighter and darker, same hue and chroma
- #8E441D · oklch(0.475 0.113 45.9) · ΔL +0.06
- #682200 · oklch(0.355 0.113 45.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?