#9E2217#9E2217

#9E2217 is a mid, vivid red. Relative luminance 0.085; OKLCH L 45.8% C 0.162 H 29.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#9E2217
RGBrgb(158, 34, 23)
HSLhsl(5, 75%, 35%)
HSVhsv(5, 85%, 62%)
CMYKcmyk(0%, 78.5%, 85.4%, 38%)
CIE-LABlab(34.96, 49.52, 38.21)
CIE-LCHlch(34.96, 62.55, 37.65°)
OKLaboklab(45.84% 0.1404 0.0802)
OKLCHoklch(45.84% 0.162 29.7)
XYZxyz(14.8291, 8.4774, 1.6659)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2217 #17939E
analogous
#9E174F #9E2217 #9E6517
triadic
#9E2217 #179E22 #22179E
tetradic
#9E2217 #4F9E17 #17939E #65179E
square
#9E2217 #4F9E17 #17939E #65179E
split-complementary
#9E2217 #179E65 #174F9E
monochromatic
#330B07 #69170F #9E2217 #D32D1F #E5574B

Accessibility & contrast

On white

7.79
#9E2217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#9E2217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E2217
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2217#FFFFFF#000000##FFFFFF
##9E22171.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494114
Deuteranopia (green-blind)
#685C0F
Tritanopia (blue-blind)
#AF0021
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e2217;
/* rgb */ color: rgb(158, 34, 23);
/* oklch */ color: oklch(45.8% 0.162 29.7);
Tailwind
colors: {
  custom: {
    50: '#c46856',
    500: '#9e2217',
    950: '#000000',
  },
}
SCSS
$custom: #9e2217;
$custom-light: #c46856;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2217",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 23
  },
  "hsl": {
    "h": 4.889,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.16167,
    "h": 29.7
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#9E2217
secondary
#4ABCC6
accent
#E2F137
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#150703
muted
#837A78

Preview Lab

Preview with #9E2217

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

Preview Lab → · Contrast checker → · Palette generator →

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