RGB to HEX: #973C00

Also known as: Tailwind amber-800

Result

rgb(151 60 0) → #973C00

Values are shown at full precision, so converting back gives exactly #973c00. 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 = 151 = 9×16 + 7 → 97
    G = 60 = 3×16 + 12 → 3C
    B = 0 = 0×16 + 0 → 00
  2. 2. pairs → HEX

    97 3C 00 → #973C00

All formats

HEX
#973c00
RGB
rgb(151 60 0)
RGB (legacy)
rgb(151, 60, 0)
HSL
hsl(23.84 100.00% 29.61%) → hsl(24 100% 30%)
HWB
hwb(24 0% 41%)
OKLCH
oklch(0.475 0.136 45.0) · oklch(47.5% 0.136 45.0)
OKLab
oklab(0.475 0.096 0.096)
Lab (D50)
lab(38.07 37.26 49.37)
LCH (D50)
lch(38.07 61.85 52.96)
Display P3
color(display-p3 0.5493 0.2576 0.0901)
Linear sRGB
color(srgb-linear 0.3095 0.0452 0.0000)

Gamut: sRGB and Display P3

#973C00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.154; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #973c00;
  color: rgb(151 60 0);
  color: hsl(24 100% 30%);
  color: oklch(0.475 0.136 45.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.475 0.136 45.0);
}
/* arbitrary values */
class="text-[#973c00] bg-[oklch(0.475_0.136_45.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5493 0.2576 0.0901); }
}

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

  • #AB4E1D · oklch(0.535 0.136 45.0) · ΔL +0.06
  • #832A00 · oklch(0.415 0.136 45.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?