#7E171F#7E171F

#7E171F is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.9% C 0.137 H 22.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#7E171F
RGBrgb(126, 23, 31)
HSLhsl(355, 69%, 29%)
HSVhsv(355, 82%, 49%)
CMYKcmyk(0%, 81.7%, 75.4%, 50.6%)
CIE-LABlab(27.15, 43.22, 23.38)
CIE-LCHlch(27.15, 49.14, 28.42°)
OKLaboklab(38.88% 0.1262 0.0531)
OKLCHoklch(38.88% 0.137 22.8)
XYZxyz(9.1590, 5.1488, 1.8076)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E171F #177E76
analogous
#7E1753 #7E171F #7E4317
triadic
#7E171F #1F7E17 #171F7E
tetradic
#7E171F #537E17 #177E76 #43177E
square
#7E171F #537E17 #177E76 #43177E
split-complementary
#7E171F #177E43 #17537E
monochromatic
#1A0506 #4A0E12 #7E171F #B2202C #DA3542

Accessibility & contrast

On white

10.35
#7E171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E171F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E171F#FFFFFF#000000##FFFFFF
##7E171F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321E
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e171f;
/* rgb */ color: rgb(126, 23, 31);
/* oklch */ color: oklch(38.9% 0.137 22.8);
Tailwind
colors: {
  custom: {
    50: '#ab5f5a',
    500: '#7e171f',
    950: '#000000',
  },
}
SCSS
$custom: #7e171f;
$custom-light: #ab5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e171f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.34,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3888,
    "c": 0.13695,
    "h": 22.8
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#7E171F
secondary
#3EB3AA
accent
#ECDE3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E171F

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

Preview Lab → · Contrast checker → · Palette generator →

#7E171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva