RGB to HEX: #991B1B

Also known as: Tailwind v3 red-800

Result

rgb(153 27 27) → #991B1B

Values are shown at full precision, so converting back gives exactly #991b1b. 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 = 153 = 9×16 + 9 → 99
    G = 27 = 1×16 + 11 → 1B
    B = 27 = 1×16 + 11 → 1B
  2. 2. pairs → HEX

    99 1B 1B → #991B1B

All formats

HEX
#991b1b
RGB
rgb(153 27 27)
RGB (legacy)
rgb(153, 27, 27)
HSL
hsl(0.00 70.00% 35.29%) → hsl(0 70% 35%)
HWB
hwb(0 11% 40%)
OKLCH
oklch(0.444 0.161 26.9) · oklch(44.4% 0.161 26.9)
OKLab
oklab(0.444 0.144 0.073)
Lab (D50)
lab(33.86 50.80 35.41)
LCH (D50)
lch(33.86 61.92 34.88)
Display P3
color(display-p3 0.5506 0.1567 0.1344)
Linear sRGB
color(srgb-linear 0.3185 0.0110 0.0110)

Gamut: sRGB and Display P3

#991B1B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.181 and Display P3 reaches 0.204; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #991b1b;
  color: rgb(153 27 27);
  color: hsl(0 70% 35%);
  color: oklch(0.444 0.161 26.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.444 0.161 26.9);
}
/* arbitrary values */
class="text-[#991b1b] bg-[oklch(0.444_0.161_26.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5506 0.1567 0.1344); }
}

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

  • #AE322D · oklch(0.504 0.161 26.9) · ΔL +0.06
  • #850006 · oklch(0.384 0.161 26.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?