#7E171A#7E171A

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

Color values

HEX#7E171A
RGBrgb(126, 23, 26)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 82%, 49%)
CMYKcmyk(0%, 81.7%, 79.4%, 50.6%)
CIE-LABlab(27.09, 43.01, 26.48)
CIE-LCHlch(27.09, 50.50, 31.62°)
OKLaboklab(38.81% 0.1244 0.0586)
OKLCHoklch(38.81% 0.137 25.2)
XYZxyz(9.0981, 5.1244, 1.4871)
Luminance0.0512 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E171A #177E7B
analogous
#7E174E #7E171A #7E4817
triadic
#7E171A #1A7E17 #171A7E
tetradic
#7E171A #4E7E17 #177E7B #48177E
square
#7E171A #4E7E17 #177E7B #48177E
split-complementary
#7E171A #177E48 #174E7E
monochromatic
#1A0505 #4A0E0F #7E171A #B22025 #DA353A

Accessibility & contrast

On white

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

On black

2.02
#7E171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E171A#FFFFFF#000000##FFFFFF
##7E171A1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373219
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e171a;
/* rgb */ color: rgb(126, 23, 26);
/* oklch */ color: oklch(38.8% 0.137 25.2);
Tailwind
colors: {
  custom: {
    50: '#ab5f57',
    500: '#7e171a',
    950: '#000000',
  },
}
SCSS
$custom: #7e171a;
$custom-light: #ab5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7e171a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.252,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38808,
    "c": 0.13747,
    "h": 25.2
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#7E171A
secondary
#3EB3AF
accent
#ECE73C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E171A

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

Preview Lab → · Contrast checker → · Palette generator →

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