HEX to RGB: #9A3412

Also known as: Tailwind v3 orange-800

Result

#9A3412 → rgb(154 52 18)

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

    #9A3412 → 9A | 34 | 12
  2. 2. base 16 → base 10

    R = 9A₁₆ = 9×16 + 10 = 154
    G = 34₁₆ = 3×16 + 4 = 52
    B = 12₁₆ = 1×16 + 2 = 18
  3. 3. RGB

    rgb(154 52 18)

All formats

HEX
#9a3412
RGB
rgb(154 52 18)
RGB (legacy)
rgb(154, 52, 18)
HSL
hsl(15.00 79.07% 33.73%) → hsl(15 79% 34%)
HWB
hwb(15 7% 40%)
OKLCH
oklch(0.470 0.143 37.3) · oklch(47.0% 0.143 37.3)
OKLab
oklab(0.470 0.114 0.087)
Lab (D50)
lab(37.28 42.22 42.83)
LCH (D50)
lch(37.28 60.14 45.41)
Display P3
color(display-p3 0.5582 0.2319 0.1206)
Linear sRGB
color(srgb-linear 0.3231 0.0343 0.0060)

Gamut: sRGB and Display P3

#9A3412 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.156 and Display P3 reaches 0.176; this color uses 92% of the sRGB chroma available.

CSS snippets

.element {
  color: #9a3412;
  color: rgb(154 52 18);
  color: hsl(15 79% 34%);
  color: oklch(0.470 0.143 37.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.470 0.143 37.3);
}
/* arbitrary values */
class="text-[#9a3412] bg-[oklch(0.470_0.143_37.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5582 0.2319 0.1206); }
}

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

  • #AE4727 · oklch(0.530 0.143 37.3) · ΔL +0.06
  • #862000 · oklch(0.410 0.143 37.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?