#9D1F27#9D1F27

#9D1F27 is a mid, vivid red. Relative luminance 0.083; OKLCH L 45.6% C 0.161 H 23.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#9D1F27
RGBrgb(157, 31, 39)
HSLhsl(356, 67%, 37%)
HSVhsv(356, 80%, 62%)
CMYKcmyk(0%, 80.3%, 75.2%, 38.4%)
CIE-LABlab(34.59, 50.69, 28.60)
CIE-LCHlch(34.59, 58.20, 29.43°)
OKLaboklab(45.58% 0.1476 0.0644)
OKLCHoklch(45.58% 0.161 23.6)
XYZxyz(14.7626, 8.2969, 2.7432)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F27 #1F9D95
analogous
#9D1F66 #9D1F27 #9D561F
triadic
#9D1F27 #279D1F #1F279D
tetradic
#9D1F27 #669D1F #1F9D95 #561F9D
square
#9D1F27 #669D1F #1F9D95 #561F9D
split-complementary
#9D1F27 #1F9D56 #1F669D
monochromatic
#370B0E #6A151A #9D1F27 #D02934 #DE5861

Accessibility & contrast

On white

7.90
#9D1F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#9D1F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F27
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F27#FFFFFF#000000##FFFFFF
##9D1F271.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464026
Deuteranopia (green-blind)
#655B22
Tritanopia (blue-blind)
#AD0024
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #9d1f27;
/* rgb */ color: rgb(157, 31, 39);
/* oklch */ color: oklch(45.6% 0.161 23.6);
Tailwind
colors: {
  custom: {
    50: '#c26761',
    500: '#9d1f27',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f27;
$custom-light: #c26761;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f27",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 356.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45582,
    "c": 0.16104,
    "h": 23.6
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#9D1F27
secondary
#56C2BB
accent
#EADF3E
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#140705
muted
#837A79

Preview Lab

Preview with #9D1F27

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

Preview Lab → · Contrast checker → · Palette generator →

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