#9F2217#9F2217

#9F2217 is a mid, vivid red. Relative luminance 0.086; OKLCH L 46.0% C 0.163 H 29.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#9F2217
RGBrgb(159, 34, 23)
HSLhsl(5, 75%, 36%)
HSVhsv(5, 86%, 62%)
CMYKcmyk(0%, 78.6%, 85.5%, 37.6%)
CIE-LABlab(35.16, 49.84, 38.47)
CIE-LCHlch(35.16, 62.96, 37.66°)
OKLaboklab(46.02% 0.1413 0.0806)
OKLCHoklch(46.02% 0.163 29.7)
XYZxyz(15.0266, 8.5793, 1.6752)
Luminance0.0858 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2217 #17949F
analogous
#9F1750 #9F2217 #9F6617
triadic
#9F2217 #179F22 #22179F
tetradic
#9F2217 #509F17 #17949F #66179F
square
#9F2217 #509F17 #17949F #66179F
split-complementary
#9F2217 #179F66 #17509F
monochromatic
#340B08 #6A170F #9F2217 #D42D1F #E5584B

Accessibility & contrast

On white

7.73
#9F2217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#9F2217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2217
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2217#FFFFFF#000000##FFFFFF
##9F22171.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4114
Deuteranopia (green-blind)
#685D0F
Tritanopia (blue-blind)
#B00021
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9f2217;
/* rgb */ color: rgb(159, 34, 23);
/* oklch */ color: oklch(46.0% 0.163 29.7);
Tailwind
colors: {
  custom: {
    50: '#c56956',
    500: '#9f2217',
    950: '#000000',
  },
}
SCSS
$custom: #9f2217;
$custom-light: #c56956;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2217",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 23
  },
  "hsl": {
    "h": 4.853,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46022,
    "c": 0.16265,
    "h": 29.7
  },
  "luminance": 0.08577
}

Semantic roles & 50–950 ramp

primary
#9F2217
secondary
#4BBDC7
accent
#E2F136
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#150703
muted
#837A78

Preview Lab

Preview with #9F2217

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

Preview Lab → · Contrast checker → · Palette generator →

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