#7E1B17#7E1B17

#7E1B17 is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.1% C 0.135 H 27.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#7E1B17
RGBrgb(126, 27, 23)
HSLhsl(2, 69%, 29%)
HSVhsv(2, 82%, 49%)
CMYKcmyk(0%, 78.6%, 81.7%, 50.6%)
CIE-LABlab(27.53, 41.56, 28.77)
CIE-LCHlch(27.53, 50.55, 34.70°)
OKLaboklab(39.12% 0.1191 0.0627)
OKLCHoklch(39.12% 0.135 27.7)
XYZxyz(9.1519, 5.2828, 1.3482)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B17 #177A7E
analogous
#7E1747 #7E1B17 #7E4F17
triadic
#7E1B17 #177E1B #1B177E
tetradic
#7E1B17 #477E17 #177A7E #4F177E
square
#7E1B17 #477E17 #177A7E #4F177E
split-complementary
#7E1B17 #177E4F #17477E
monochromatic
#1A0605 #4A100E #7E1B17 #B22620 #DA3C35

Accessibility & contrast

On white

10.21
#7E1B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7E1B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B17
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B17#FFFFFF#000000##FFFFFF
##7E1B171.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393315
Deuteranopia (green-blind)
#524913
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1b17;
/* rgb */ color: rgb(126, 27, 23);
/* oklch */ color: oklch(39.1% 0.135 27.7);
Tailwind
colors: {
  custom: {
    50: '#ab6055',
    500: '#7e1b17',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b17;
$custom-light: #ab6055;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b17",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 23
  },
  "hsl": {
    "h": 2.33,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39124,
    "c": 0.13458,
    "h": 27.7
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#7E1B17
secondary
#3EAEB3
accent
#E5EC3C
background
#FBF6F4
surface
#F6EBE7
border
#D0C6C3
text
#120503
muted
#817A78

Preview Lab

Preview with #7E1B17

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

Preview Lab → · Contrast checker → · Palette generator →

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