#9D1F1A#9D1F1A

#9D1F1A is a mid, vivid red. Relative luminance 0.082; OKLCH L 45.4% C 0.163 H 28.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#9D1F1A
RGBrgb(157, 31, 26)
HSLhsl(2, 72%, 36%)
HSVhsv(2, 83%, 62%)
CMYKcmyk(0%, 80.3%, 83.4%, 38.4%)
CIE-LABlab(34.45, 50.23, 36.06)
CIE-LCHlch(34.45, 61.83, 35.67°)
OKLaboklab(45.43% 0.1433 0.0767)
OKLCHoklch(45.43% 0.163 28.2)
XYZxyz(14.5829, 8.2250, 1.7968)
Luminance0.0822 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F1A #1A989D
analogous
#9D1A56 #9D1F1A #9D601A
triadic
#9D1F1A #1A9D1F #1F1A9D
tetradic
#9D1F1A #569D1A #1A989D #601A9D
square
#9D1F1A #569D1A #1A989D #601A9D
split-complementary
#9D1F1A #1A9D60 #1A569D
monochromatic
#340A09 #681511 #9D1F1A #D22923 #E2554F

Accessibility & contrast

On white

7.94
#9D1F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#9D1F1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F1A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F1A#FFFFFF#000000##FFFFFF
##9D1F1A1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473F18
Deuteranopia (green-blind)
#665B13
Tritanopia (blue-blind)
#AD0020
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #9d1f1a;
/* rgb */ color: rgb(157, 31, 26);
/* oklch */ color: oklch(45.4% 0.163 28.2);
Tailwind
colors: {
  custom: {
    50: '#c36758',
    500: '#9d1f1a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f1a;
$custom-light: #c36758;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f1a",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 26
  },
  "hsl": {
    "h": 2.29,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.16252,
    "h": 28.2
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#9D1F1A
secondary
#4EC0C4
accent
#E7EE39
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#140703
muted
#837A78

Preview Lab

Preview with #9D1F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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