RGB to HEX: #854D0E

Also known as: Tailwind v3 yellow-800

Result

rgb(133 77 14) → #854D0E

Values are shown at full precision, so converting back gives exactly #854d0e. 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. base 10 → base 16

    R = 133 = 8×16 + 5 → 85
    G = 77 = 4×16 + 13 → 4D
    B = 14 = 0×16 + 14 → 0E
  2. 2. pairs → HEX

    85 4D 0E → #854D0E

All formats

HEX
#854d0e
RGB
rgb(133 77 14)
RGB (legacy)
rgb(133, 77, 14)
HSL
hsl(31.76 80.95% 28.82%) → hsl(32 81% 29%)
HWB
hwb(32 5% 48%)
OKLCH
oklch(0.476 0.103 61.9) · oklch(47.6% 0.103 61.9)
OKLab
oklab(0.476 0.049 0.091)
Lab (D50)
lab(38.84 20.98 43.64)
LCH (D50)
lch(38.84 48.42 64.32)
Display P3
color(display-p3 0.4913 0.3124 0.1198)
Linear sRGB
color(srgb-linear 0.2346 0.0742 0.0044)

Gamut: sRGB and Display P3

#854D0E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.110 and Display P3 reaches 0.125; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #854d0e;
  color: rgb(133 77 14);
  color: hsl(32 81% 29%);
  color: oklch(0.476 0.103 61.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.476 0.103 61.9);
}
/* arbitrary values */
class="text-[#854d0e] bg-[oklch(0.476_0.103_61.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4913 0.3124 0.1198); }
}

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

  • #985E25 · oklch(0.536 0.103 61.9) · ΔL +0.06
  • #733C00 · oklch(0.416 0.103 61.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?