#9D2817#9D2817

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

Color values

HEX#9D2817
RGBrgb(157, 40, 23)
HSLhsl(8, 74%, 35%)
HSVhsv(8, 85%, 62%)
CMYKcmyk(0%, 74.5%, 85.4%, 38.4%)
CIE-LABlab(35.50, 47.14, 38.62)
CIE-LCHlch(35.50, 60.94, 39.32°)
OKLaboklab(46.2% 0.1331 0.0812)
OKLCHoklch(46.2% 0.156 31.4)
XYZxyz(14.8199, 8.7499, 1.7190)
Luminance0.0875 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2817 #178C9D
analogous
#9D1749 #9D2817 #9D6B17
triadic
#9D2817 #179D28 #28179D
tetradic
#9D2817 #499D17 #178C9D #6B179D
square
#9D2817 #499D17 #178C9D #6B179D
split-complementary
#9D2817 #179D6B #17499D
monochromatic
#320D07 #681A0F #9D2817 #D2361F #E45E4A

Accessibility & contrast

On white

7.64
#9D2817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#9D2817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2817
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2817#FFFFFF#000000##FFFFFF
##9D28171.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4313
Deuteranopia (green-blind)
#695D10
Tritanopia (blue-blind)
#AD0025
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d2817;
/* rgb */ color: rgb(157, 40, 23);
/* oklch */ color: oklch(46.2% 0.156 31.4);
Tailwind
colors: {
  custom: {
    50: '#c36b56',
    500: '#9d2817',
    950: '#000000',
  },
}
SCSS
$custom: #9d2817;
$custom-light: #c36b56;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2817",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 23
  },
  "hsl": {
    "h": 7.612,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46201,
    "c": 0.15589,
    "h": 31.4
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#9D2817
secondary
#4AB6C6
accent
#D9F137
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#140703
muted
#837A78

Preview Lab

Preview with #9D2817

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

Preview Lab → · Contrast checker → · Palette generator →

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