#9F2817#9F2817

#9F2817 is a mid, vivid red. Relative luminance 0.089; OKLCH L 46.6% C 0.158 H 31.3°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#9F2817
RGBrgb(159, 40, 23)
HSLhsl(8, 75%, 36%)
HSVhsv(8, 86%, 62%)
CMYKcmyk(0%, 74.8%, 85.5%, 37.6%)
CIE-LABlab(35.89, 47.80, 39.12)
CIE-LCHlch(35.89, 61.77, 39.30°)
OKLaboklab(46.57% 0.1349 0.0821)
OKLCHoklch(46.57% 0.158 31.3)
XYZxyz(15.2134, 8.9528, 1.7375)
Luminance0.0895 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2817 #178E9F
analogous
#9F174A #9F2817 #9F6C17
triadic
#9F2817 #179F28 #28179F
tetradic
#9F2817 #4A9F17 #178E9F #6C179F
square
#9F2817 #4A9F17 #178E9F #6C179F
split-complementary
#9F2817 #179F6C #174A9F
monochromatic
#340D08 #6A1B0F #9F2817 #D4351F #E55F4B

Accessibility & contrast

On white

7.53
#9F2817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#9F2817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2817
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2817#FFFFFF#000000##FFFFFF
##9F28171.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4413
Deuteranopia (green-blind)
#6A5E10
Tritanopia (blue-blind)
#B00025
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9f2817;
/* rgb */ color: rgb(159, 40, 23);
/* oklch */ color: oklch(46.6% 0.158 31.3);
Tailwind
colors: {
  custom: {
    50: '#c56b56',
    500: '#9f2817',
    950: '#000000',
  },
}
SCSS
$custom: #9f2817;
$custom-light: #c56b56;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2817",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 23
  },
  "hsl": {
    "h": 7.5,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46568,
    "c": 0.15794,
    "h": 31.3
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#9F2817
secondary
#4BB7C7
accent
#DAF136
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #9F2817

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

Preview Lab → · Contrast checker → · Palette generator →

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