#7E1A1B#7E1A1B

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

Color values

HEX#7E1A1B
RGBrgb(126, 26, 27)
HSLhsl(359, 66%, 30%)
HSVhsv(359, 79%, 49%)
CMYKcmyk(0%, 79.4%, 78.6%, 50.6%)
CIE-LABlab(27.45, 42.06, 26.25)
CIE-LCHlch(27.45, 49.58, 31.97°)
OKLaboklab(39.08% 0.1216 0.0584)
OKLCHoklch(39.08% 0.135 25.7)
XYZxyz(9.1725, 5.2550, 1.5680)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A1B #1A7E7D
analogous
#7E1A4D #7E1A1B #7E4B1A
triadic
#7E1A1B #1B7E1A #1A1B7E
tetradic
#7E1A1B #4D7E1A #1A7E7D #4B1A7E
square
#7E1A1B #4D7E1A #1A7E7D #4B1A7E
split-complementary
#7E1A1B #1A7E4B #1A4D7E
monochromatic
#190505 #4B1010 #7E1A1B #B12426 #D73C3D

Accessibility & contrast

On white

10.24
#7E1A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7E1A1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A1B
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A1B#FFFFFF#000000##FFFFFF
##7E1A1B1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39331A
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1a1b;
/* rgb */ color: rgb(126, 26, 27);
/* oklch */ color: oklch(39.1% 0.135 25.7);
Tailwind
colors: {
  custom: {
    50: '#ab6057',
    500: '#7e1a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a1b;
$custom-light: #ab6057;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a1b",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 27
  },
  "hsl": {
    "h": 359.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39082,
    "c": 0.1349,
    "h": 25.7
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#7E1A1B
secondary
#42B2B1
accent
#E9E73F
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7E1A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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