RGB to HEX: #9F2D00

Also known as: Tailwind orange-800

Result

rgb(159 45 0) → #9F2D00

Values are shown at full precision, so converting back gives exactly #9f2d00. 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 = 159 = 9×16 + 15 → 9F
    G = 45 = 2×16 + 13 → 2D
    B = 0 = 0×16 + 0 → 00
  2. 2. pairs → HEX

    9F 2D 00 → #9F2D00

All formats

HEX
#9f2d00
RGB
rgb(159 45 0)
RGB (legacy)
rgb(159, 45, 0)
HSL
hsl(16.98 100.00% 31.18%) → hsl(17 100% 31%)
HWB
hwb(17 0% 38%)
OKLCH
oklch(0.470 0.157 37.1) · oklch(47.0% 0.157 37.1)
OKLab
oklab(0.470 0.125 0.095)
Lab (D50)
lab(37.11 46.59 50.06)
LCH (D50)
lch(37.11 68.38 47.06)
Display P3
color(display-p3 0.5747 0.2117 0.0848)
Linear sRGB
color(srgb-linear 0.3467 0.0262 0.0000)

Gamut: sRGB and Display P3

#9F2D00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.157 and Display P3 reaches 0.177; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #9f2d00;
  color: rgb(159 45 0);
  color: hsl(17 100% 31%);
  color: oklch(0.470 0.157 37.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.470 0.157 37.1);
}
/* arbitrary values */
class="text-[#9f2d00] bg-[oklch(0.470_0.157_37.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5747 0.2117 0.0848); }
}

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

  • #B3411C · oklch(0.530 0.157 37.1) · ΔL +0.06
  • #8B1600 · oklch(0.410 0.157 37.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?