#7E1517#7E1517

#7E1517 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.6% C 0.139 H 26.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#7E1517
RGBrgb(126, 21, 23)
HSLhsl(359, 71%, 29%)
HSVhsv(359, 83%, 49%)
CMYKcmyk(0%, 83.3%, 81.7%, 50.6%)
CIE-LABlab(26.84, 43.50, 28.06)
CIE-LCHlch(26.84, 51.76, 32.82°)
OKLaboklab(38.61% 0.1252 0.0611)
OKLCHoklch(38.61% 0.139 26)
XYZxyz(9.0281, 5.0353, 1.3070)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1517 #157E7C
analogous
#7E154C #7E1517 #7E4815
triadic
#7E1517 #177E15 #15177E
tetradic
#7E1517 #4C7E15 #157E7C #48157E
square
#7E1517 #4C7E15 #157E7C #48157E
split-complementary
#7E1517 #157E48 #154C7E
monochromatic
#1A0405 #4A0C0D #7E1517 #B21E21 #DD3134

Accessibility & contrast

On white

10.46
#7E1517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7E1517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1517
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1517#FFFFFF#000000##FFFFFF
##7E15171.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373116
Deuteranopia (green-blind)
#504712
Tritanopia (blue-blind)
#8B0017
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1517;
/* rgb */ color: rgb(126, 21, 23);
/* oklch */ color: oklch(38.6% 0.139 26.0);
Tailwind
colors: {
  custom: {
    50: '#ac5e54',
    500: '#7e1517',
    950: '#000000',
  },
}
SCSS
$custom: #7e1517;
$custom-light: #ac5e54;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1517",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 23
  },
  "hsl": {
    "h": 358.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3861,
    "c": 0.13933,
    "h": 26
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#7E1517
secondary
#3CB3B1
accent
#EEEB3A
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120503
muted
#817978

Preview Lab

Preview with #7E1517

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

Preview Lab → · Contrast checker → · Palette generator →

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