#9D1F2E#9D1F2E

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

Color values

HEX#9D1F2E
RGBrgb(157, 31, 46)
HSLhsl(353, 67%, 37%)
HSVhsv(353, 80%, 62%)
CMYKcmyk(0%, 80.3%, 70.7%, 38.4%)
CIE-LABlab(34.70, 51.02, 24.36)
CIE-LCHlch(34.70, 56.53, 25.52°)
OKLaboklab(45.69% 0.1502 0.0565)
OKLCHoklch(45.69% 0.161 20.6)
XYZxyz(14.8895, 8.3477, 3.4115)
Luminance0.0834 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F2E #1F9D8E
analogous
#9D1F6D #9D1F2E #9D4F1F
triadic
#9D1F2E #2E9D1F #1F2E9D
tetradic
#9D1F2E #6D9D1F #1F9D8E #4F1F9D
square
#9D1F2E #6D9D1F #1F9D8E #4F1F9D
split-complementary
#9D1F2E #1F9D4F #1F6D9D
monochromatic
#370B10 #6A151F #9D1F2E #D0293D #DE5868

Accessibility & contrast

On white

7.87
#9D1F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#9D1F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F2E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F2E#FFFFFF#000000##FFFFFF
##9D1F2E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45412D
Deuteranopia (green-blind)
#655B2A
Tritanopia (blue-blind)
#AD0026
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9d1f2e;
/* rgb */ color: rgb(157, 31, 46);
/* oklch */ color: oklch(45.7% 0.161 20.6);
Tailwind
colors: {
  custom: {
    50: '#c26866',
    500: '#9d1f2e',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f2e;
$custom-light: #c26866;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f2e",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 46
  },
  "hsl": {
    "h": 352.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45691,
    "c": 0.1605,
    "h": 20.6
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#9D1F2E
secondary
#56C2B5
accent
#EAD53E
background
#FCF6F6
surface
#F9EBEB
border
#D2C6C6
text
#140706
muted
#827A7A

Preview Lab

Preview with #9D1F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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