HEX to RGB: #B45309

Also known as: Tailwind v3 amber-700

Result

#B45309 → rgb(180 83 9)

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. 1. HEX → pairs

    #B45309 → B4 | 53 | 09
  2. 2. base 16 → base 10

    R = B4₁₆ = 11×16 + 4 = 180
    G = 53₁₆ = 5×16 + 3 = 83
    B = 09₁₆ = 0×16 + 9 = 9
  3. 3. RGB

    rgb(180 83 9)

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).

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

All converters →

Guides: What is OKLCH?