HEX to RGB: #B8860B

Also known as: CSS darkgoldenrod

Result

#B8860B → rgb(184 134 11)

Values are shown at full precision, so converting back gives exactly #b8860b. 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

    #B8860B → B8 | 86 | 0B
  2. 2. base 16 → base 10

    R = B8₁₆ = 11×16 + 8 = 184
    G = 86₁₆ = 8×16 + 6 = 134
    B = 0B₁₆ = 0×16 + 11 = 11
  3. 3. RGB

    rgb(184 134 11)

All formats

HEX
#b8860b
RGB
rgb(184 134 11)
RGB (legacy)
rgb(184, 134, 11)
HSL
hsl(42.66 88.72% 38.24%) → hsl(43 89% 38%)
HWB
hwb(43 4% 28%)
OKLCH
oklch(0.652 0.132 81.6) · oklch(65.2% 0.132 81.6)
OKLab
oklab(0.652 0.019 0.131)
Lab (D50)
lab(59.69 13.06 62.65)
LCH (D50)
lch(59.69 63.99 78.22)
Display P3
color(display-p3 0.6919 0.5335 0.1846)
Linear sRGB
color(srgb-linear 0.4793 0.2384 0.0033)

Gamut: sRGB and Display P3

#B8860B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.134 and Display P3 reaches 0.155; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #b8860b;
  color: rgb(184 134 11);
  color: hsl(43 89% 38%);
  color: oklch(0.652 0.132 81.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.652 0.132 81.6);
}
/* arbitrary values */
class="text-[#b8860b] bg-[oklch(0.652_0.132_81.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6919 0.5335 0.1846); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b8860b 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

  • #CB992D · oklch(0.712 0.132 81.6) · ΔL +0.06
  • #A57400 · oklch(0.592 0.132 81.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?