#9D271C#9D271C

#9D271C is a mid, vivid red. Relative luminance 0.087; OKLCH L 46.2% C 0.156 H 29.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#9D271C
RGBrgb(157, 39, 28)
HSLhsl(5, 70%, 36%)
HSVhsv(5, 82%, 62%)
CMYKcmyk(0%, 75.2%, 82.2%, 38.4%)
CIE-LABlab(35.41, 47.65, 35.89)
CIE-LCHlch(35.41, 59.66, 36.99°)
OKLaboklab(46.15% 0.1356 0.0771)
OKLCHoklch(46.15% 0.156 29.6)
XYZxyz(14.8415, 8.7053, 1.9972)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D271C #1C929D
analogous
#9D1C52 #9D271C #9D681C
triadic
#9D271C #1C9D27 #271C9D
tetradic
#9D271C #529D1C #1C929D #681C9D
square
#9D271C #529D1C #1C929D #681C9D
split-complementary
#9D271C #1C9D68 #1C529D
monochromatic
#350D09 #691A13 #9D271C #D13425 #E05F53

Accessibility & contrast

On white

7.66
#9D271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#9D271C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D271C
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D271C#FFFFFF#000000##FFFFFF
##9D271C1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4319
Deuteranopia (green-blind)
#685D16
Tritanopia (blue-blind)
#AD0026
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d271c;
/* rgb */ color: rgb(157, 39, 28);
/* oklch */ color: oklch(46.2% 0.156 29.6);
Tailwind
colors: {
  custom: {
    50: '#c36b59',
    500: '#9d271c',
    950: '#000000',
  },
}
SCSS
$custom: #9d271c;
$custom-light: #c36b59;
$custom-dark: #000000;
JSON
{
  "hex": "#9d271c",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 5.116,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.15598,
    "h": 29.6
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#9D271C
secondary
#51BAC3
accent
#DDED3B
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#140704
muted
#837A79

Preview Lab

Preview with #9D271C

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

Preview Lab → · Contrast checker → · Palette generator →

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