HEX to HSL: #A16207

Also known as: Tailwind v3 yellow-700

Result

#A16207 → hsl(35 92% 33%)

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. RGB ÷ 255

    R = 0.6314
    G = 0.3843
    B = 0.0275
  2. 2. max, min, Δ

    max = 0.6314
    min = 0.0275
    Δ = max − min = 0.6039
  3. 3. L

    L = (max + min) / 2 = 0.3294 = 32.94%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9167 = 91.67%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3843 − 0.0275) / 0.6039) mod 6) = 35.45°
  6. 6. HSL

    hsl(35.45 91.67% 32.94%)

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?