RGB to HEX: #B45309
Also known as: Tailwind v3 amber-700
Result
rgb(180 83 9) → #B45309
Values are shown at full precision, so converting back gives exactly #b45309. 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 = 180 = 11×16 + 4 → B4 G = 83 = 5×16 + 3 → 53 B = 9 = 0×16 + 9 → 09
2. pairs → HEX
B4 53 09 → #B45309
All formats
- HEX
- #b45309
- RGB
- rgb(180 83 9)
- RGB (legacy)
- rgb(180, 83, 9)
- HSL
- hsl(25.96 90.48% 37.06%) → hsl(26 90% 37%)
- HWB
- hwb(26 4% 29%)
- OKLCH
- oklch(0.555 0.146 49.0) · oklch(55.5% 0.146 49.0)
- OKLab
- oklab(0.555 0.095 0.110)
- Lab (D50)
- lab(47.46 37.77 54.90)
- LCH (D50)
- lch(47.46 66.64 55.47)
- Display P3
- color(display-p3 0.6582 0.3471 0.1360)
- Linear sRGB
- color(srgb-linear 0.4564 0.0865 0.0027)
Gamut: sRGB and Display P3
#B45309 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.169; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #b45309;
color: rgb(180 83 9);
color: hsl(26 90% 37%);
color: oklch(0.555 0.146 49.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.555 0.146 49.0);
}
/* arbitrary values */
class="text-[#b45309] bg-[oklch(0.555_0.146_49.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6582 0.3471 0.1360); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b45309 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-700#BB4D00
- yellow-700#A65F00
- v3 orange-700#C2410C
- sienna#A0522D
- v3 yellow-700#A16207
- orange-700#CA3500
- chocolate#D2691E
- amber-800#973C00
Lighter and darker, same hue and chroma
- #C86526 · oklch(0.615 0.146 49.0) · ΔL +0.06
- #A04100 · oklch(0.495 0.146 49.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?