#7E1718#7E1718

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

Color values

HEX#7E1718
RGBrgb(126, 23, 24)
HSLhsl(359, 69%, 29%)
HSVhsv(359, 82%, 49%)
CMYKcmyk(0%, 81.7%, 81%, 50.6%)
CIE-LABlab(27.06, 42.93, 27.69)
CIE-LCHlch(27.06, 51.08, 32.82°)
OKLaboklab(38.78% 0.1236 0.0606)
OKLCHoklch(38.78% 0.138 26.1)
XYZxyz(9.0765, 5.1158, 1.3735)
Luminance0.0511 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1718 #177E7D
analogous
#7E174C #7E1718 #7E4917
triadic
#7E1718 #187E17 #17187E
tetradic
#7E1718 #4C7E17 #177E7D #49177E
square
#7E1718 #4C7E17 #177E7D #49177E
split-complementary
#7E1718 #177E49 #174C7E
monochromatic
#1A0505 #4A0E0E #7E1718 #B22022 #DA3537

Accessibility & contrast

On white

10.38
#7E1718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1718
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1718#FFFFFF#000000##FFFFFF
##7E17181.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1718;
/* rgb */ color: rgb(126, 23, 24);
/* oklch */ color: oklch(38.8% 0.138 26.1);
Tailwind
colors: {
  custom: {
    50: '#ac5f55',
    500: '#7e1718',
    950: '#000000',
  },
}
SCSS
$custom: #7e1718;
$custom-light: #ac5f55;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1718",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 24
  },
  "hsl": {
    "h": 359.417,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38782,
    "c": 0.1377,
    "h": 26.1
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#7E1718
secondary
#3EB3B2
accent
#ECEA3C
background
#FBF5F5
surface
#F6EAE8
border
#D0C6C4
text
#120503
muted
#817978

Preview Lab

Preview with #7E1718

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

Preview Lab → · Contrast checker → · Palette generator →

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