#9B271D#9B271D

#9B271D is a mid, vivid red. Relative luminance 0.085; OKLCH L 45.8% C 0.154 H 29.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#9B271D
RGBrgb(155, 39, 29)
HSLhsl(5, 68%, 36%)
HSVhsv(5, 81%, 61%)
CMYKcmyk(0%, 74.8%, 81.3%, 39.2%)
CIE-LABlab(35.02, 47.03, 34.83)
CIE-LCHlch(35.02, 58.52, 36.52°)
OKLaboklab(45.79% 0.1341 0.0753)
OKLCHoklch(45.79% 0.154 29.3)
XYZxyz(14.4666, 8.5106, 2.0431)
Luminance0.0851 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B271D #1D919B
analogous
#9B1D52 #9B271D #9B661D
triadic
#9B271D #1D9B27 #271D9B
tetradic
#9B271D #529B1D #1D919B #661D9B
square
#9B271D #529B1D #1D919B #661D9B
split-complementary
#9B271D #1D9B66 #1D529B
monochromatic
#340D0A #671A13 #9B271D #CF3427 #DF5F53

Accessibility & contrast

On white

7.77
#9B271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#9B271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B271D
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B271D#FFFFFF#000000##FFFFFF
##9B271D1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A421B
Deuteranopia (green-blind)
#675C18
Tritanopia (blue-blind)
#AB0026
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9b271d;
/* rgb */ color: rgb(155, 39, 29);
/* oklch */ color: oklch(45.8% 0.154 29.3);
Tailwind
colors: {
  custom: {
    50: '#c16a5a',
    500: '#9b271d',
    950: '#000000',
  },
}
SCSS
$custom: #9b271d;
$custom-light: #c16a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b271d",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 4.762,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.15377,
    "h": 29.3
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#9B271D
secondary
#52B9C2
accent
#DDEB3C
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#140704
muted
#837A79

Preview Lab

Preview with #9B271D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9B271D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva