#7E171E#7E171E

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

Color values

HEX#7E171E
RGBrgb(126, 23, 30)
HSLhsl(356, 69%, 29%)
HSVhsv(356, 82%, 49%)
CMYKcmyk(0%, 81.7%, 76.2%, 50.6%)
CIE-LABlab(27.14, 43.17, 24.01)
CIE-LCHlch(27.14, 49.40, 29.08°)
OKLaboklab(38.87% 0.1258 0.0543)
OKLCHoklch(38.87% 0.137 23.3)
XYZxyz(9.1460, 5.1436, 1.7393)
Luminance0.0514 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E171E #177E77
analogous
#7E1752 #7E171E #7E4417
triadic
#7E171E #1E7E17 #171E7E
tetradic
#7E171E #527E17 #177E77 #44177E
square
#7E171E #527E17 #177E77 #44177E
split-complementary
#7E171E #177E44 #17527E
monochromatic
#1A0506 #4A0E12 #7E171E #B2202A #DA3540

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E171E#FFFFFF#000000##FFFFFF
##7E171E1.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)
#37321D
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e171e;
/* rgb */ color: rgb(126, 23, 30);
/* oklch */ color: oklch(38.9% 0.137 23.3);
Tailwind
colors: {
  custom: {
    50: '#ab5f5a',
    500: '#7e171e',
    950: '#000000',
  },
}
SCSS
$custom: #7e171e;
$custom-light: #ab5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e171e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 355.922,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.13704,
    "h": 23.3
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#7E171E
secondary
#3EB3AB
accent
#ECE03C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7E171E

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

Preview Lab → · Contrast checker → · Palette generator →

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