#9D271F#9D271F

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

Color values

HEX#9D271F
RGBrgb(157, 39, 31)
HSLhsl(4, 67%, 37%)
HSVhsv(4, 80%, 62%)
CMYKcmyk(0%, 75.2%, 80.3%, 38.4%)
CIE-LABlab(35.44, 47.75, 34.25)
CIE-LCHlch(35.44, 58.76, 35.65°)
OKLaboklab(46.18% 0.1365 0.0745)
OKLCHoklch(46.18% 0.156 28.6)
XYZxyz(14.8792, 8.7204, 2.1958)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D271F #1F959D
analogous
#9D1F56 #9D271F #9D661F
triadic
#9D271F #1F9D27 #271F9D
tetradic
#9D271F #569D1F #1F959D #661F9D
square
#9D271F #569D1F #1F959D #661F9D
split-complementary
#9D271F #1F9D66 #1F569D
monochromatic
#370E0B #6A1A15 #9D271F #D03429 #DE6158

Accessibility & contrast

On white

7.65
#9D271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D271F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D271F#FFFFFF#000000##FFFFFF
##9D271F1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d271f;
/* rgb */ color: rgb(157, 39, 31);
/* oklch */ color: oklch(46.2% 0.156 28.6);
Tailwind
colors: {
  custom: {
    50: '#c36b5c',
    500: '#9d271f',
    950: '#000000',
  },
}
SCSS
$custom: #9d271f;
$custom-light: #c36b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d271f",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46181,
    "c": 0.15553,
    "h": 28.6
  },
  "luminance": 0.08718
}

Semantic roles & 50–950 ramp

primary
#9D271F
secondary
#56BBC2
accent
#DFEA3E
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#140704
muted
#837A79

Preview Lab

Preview with #9D271F

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

Preview Lab → · Contrast checker → · Palette generator →

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