HEX to RGB: #A16207

Also known as: Tailwind v3 yellow-700

Result

#A16207 → rgb(161 98 7)

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

    #A16207 → A1 | 62 | 07
  2. 2. base 16 → base 10

    R = A1₁₆ = 10×16 + 1 = 161
    G = 62₁₆ = 6×16 + 2 = 98
    B = 07₁₆ = 0×16 + 7 = 7
  3. 3. RGB

    rgb(161 98 7)

All formats

HEX
#a16207
RGB
rgb(161 98 7)
RGB (legacy)
rgb(161, 98, 7)
HSL
hsl(35.45 91.67% 32.94%) → hsl(35 92% 33%)
HWB
hwb(35 3% 37%)
OKLCH
oklch(0.554 0.121 66.4) · oklch(55.4% 0.121 66.4)
OKLab
oklab(0.554 0.048 0.111)
Lab (D50)
lab(47.88 21.99 53.90)
LCH (D50)
lch(47.88 58.22 67.81)
Display P3
color(display-p3 0.5968 0.3958 0.1375)
Linear sRGB
color(srgb-linear 0.3564 0.1221 0.0021)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #a16207;
  color: rgb(161 98 7);
  color: hsl(35 92% 33%);
  color: oklch(0.554 0.121 66.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.554 0.121 66.4);
}
/* arbitrary values */
class="text-[#a16207] bg-[oklch(0.554_0.121_66.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5968 0.3958 0.1375); }
}

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

  • #B47426 · oklch(0.614 0.121 66.4) · ΔL +0.06
  • #8E5000 · oklch(0.494 0.121 66.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?