#7E1817#7E1817

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

Color values

HEX#7E1817
RGBrgb(126, 24, 23)
HSLhsl(1, 69%, 29%)
HSVhsv(1, 82%, 49%)
CMYKcmyk(0%, 81%, 81.7%, 50.6%)
CIE-LABlab(27.16, 42.57, 28.40)
CIE-LCHlch(27.16, 51.18, 33.71°)
OKLaboklab(38.85% 0.1223 0.0618)
OKLCHoklch(38.85% 0.137 26.8)
XYZxyz(9.0866, 5.1522, 1.3265)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1817 #177D7E
analogous
#7E1749 #7E1817 #7E4C17
triadic
#7E1817 #177E18 #18177E
tetradic
#7E1817 #497E17 #177D7E #4C177E
square
#7E1817 #497E17 #177D7E #4C177E
split-complementary
#7E1817 #177E4C #17497E
monochromatic
#1A0505 #4A0E0E #7E1817 #B22220 #DA3735

Accessibility & contrast

On white

10.34
#7E1817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1817
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1817#FFFFFF#000000##FFFFFF
##7E18171.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383216
Deuteranopia (green-blind)
#514812
Tritanopia (blue-blind)
#8B0019
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1817;
/* rgb */ color: rgb(126, 24, 23);
/* oklch */ color: oklch(38.9% 0.137 26.8);
Tailwind
colors: {
  custom: {
    50: '#ac5f54',
    500: '#7e1817',
    950: '#000000',
  },
}
SCSS
$custom: #7e1817;
$custom-light: #ac5f54;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1817",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 23
  },
  "hsl": {
    "h": 0.583,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.13705,
    "h": 26.8
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#7E1817
secondary
#3EB2B3
accent
#EAEC3C
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120503
muted
#817978

Preview Lab

Preview with #7E1817

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

Preview Lab → · Contrast checker → · Palette generator →

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