#9E1F2B#9E1F2B

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

Color values

HEX#9E1F2B
RGBrgb(158, 31, 43)
HSLhsl(354, 67%, 37%)
HSVhsv(354, 80%, 62%)
CMYKcmyk(0%, 80.4%, 72.8%, 38%)
CIE-LABlab(34.85, 51.17, 26.48)
CIE-LCHlch(34.85, 57.62, 27.36°)
OKLaboklab(45.83% 0.1499 0.0606)
OKLCHoklch(45.83% 0.162 22)
XYZxyz(15.0283, 8.4259, 3.1201)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F2B #1F9E92
analogous
#9E1F6A #9E1F2B #9E531F
triadic
#9E1F2B #2B9E1F #1F2B9E
tetradic
#9E1F2B #6A9E1F #1F9E92 #531F9E
square
#9E1F2B #6A9E1F #1F9E92 #531F9E
split-complementary
#9E1F2B #1F9E53 #1F6A9E
monochromatic
#380B0F #6B151D #9E1F2B #D12939 #DE5966

Accessibility & contrast

On white

7.82
#9E1F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#9E1F2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F2B
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F2B#FFFFFF#000000##FFFFFF
##9E1F2B1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46412A
Deuteranopia (green-blind)
#665C27
Tritanopia (blue-blind)
#AE0025
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e1f2b;
/* rgb */ color: rgb(158, 31, 43);
/* oklch */ color: oklch(45.8% 0.162 22.0);
Tailwind
colors: {
  custom: {
    50: '#c36864',
    500: '#9e1f2b',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f2b;
$custom-light: #c36864;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f2b",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 43
  },
  "hsl": {
    "h": 354.331,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45829,
    "c": 0.16168,
    "h": 22
  },
  "luminance": 0.08423
}

Semantic roles & 50–950 ramp

primary
#9E1F2B
secondary
#56C2B8
accent
#EADA3E
background
#FDF6F6
surface
#FAEBEB
border
#D3C6C6
text
#140705
muted
#837A7A

Preview Lab

Preview with #9E1F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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