#7E171B#7E171B

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

Color values

HEX#7E171B
RGBrgb(126, 23, 27)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 82%, 49%)
CMYKcmyk(0%, 81.7%, 78.6%, 50.6%)
CIE-LABlab(27.10, 43.04, 25.87)
CIE-LCHlch(27.10, 50.22, 31.00°)
OKLaboklab(38.82% 0.1247 0.0576)
OKLCHoklch(38.82% 0.137 24.8)
XYZxyz(9.1095, 5.1290, 1.5470)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E171B #177E7A
analogous
#7E174F #7E171B #7E4717
triadic
#7E171B #1B7E17 #171B7E
tetradic
#7E171B #4F7E17 #177E7A #47177E
square
#7E171B #4F7E17 #177E7A #47177E
split-complementary
#7E171B #177E47 #174F7E
monochromatic
#1A0506 #4A0E10 #7E171B #B22026 #DA353C

Accessibility & contrast

On white

10.37
#7E171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E171B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E171B#FFFFFF#000000##FFFFFF
##7E171B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321A
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e171b;
/* rgb */ color: rgb(126, 23, 27);
/* oklch */ color: oklch(38.8% 0.137 24.8);
Tailwind
colors: {
  custom: {
    50: '#ab5f57',
    500: '#7e171b',
    950: '#000000',
  },
}
SCSS
$custom: #7e171b;
$custom-light: #ab5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7e171b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.67,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.13735,
    "h": 24.8
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#7E171B
secondary
#3EB3AE
accent
#ECE53C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E171B

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

Preview Lab → · Contrast checker → · Palette generator →

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