#7E1A2B#7E1A2B

#7E1A2B is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.4% C 0.134 H 16.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1A2B
RGBrgb(126, 26, 43)
HSLhsl(350, 66%, 30%)
HSVhsv(350, 79%, 49%)
CMYKcmyk(0%, 79.4%, 65.9%, 50.6%)
CIE-LABlab(27.71, 42.91, 16.17)
CIE-LCHlch(27.71, 45.85, 20.65°)
OKLaboklab(39.36% 0.128 0.0389)
OKLCHoklch(39.36% 0.134 16.9)
XYZxyz(9.4106, 5.3502, 2.8222)
Luminance0.0535 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A2B #1A7E6D
analogous
#7E1A5D #7E1A2B #7E3B1A
triadic
#7E1A2B #2B7E1A #1A2B7E
tetradic
#7E1A2B #5D7E1A #1A7E6D #3B1A7E
square
#7E1A2B #5D7E1A #1A7E6D #3B1A7E
split-complementary
#7E1A2B #1A7E3B #1A5D7E
monochromatic
#190509 #4B101A #7E1A2B #B1243C #D73C56

Accessibility & contrast

On white

10.15
#7E1A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7E1A2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A2B
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A2B#FFFFFF#000000##FFFFFF
##7E1A2B1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37342B
Deuteranopia (green-blind)
#504928
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1a2b;
/* rgb */ color: rgb(126, 26, 43);
/* oklch */ color: oklch(39.4% 0.134 16.9);
Tailwind
colors: {
  custom: {
    50: '#aa6164',
    500: '#7e1a2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a2b;
$custom-light: #aa6164;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a2b",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 43
  },
  "hsl": {
    "h": 349.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.13378,
    "h": 16.9
  },
  "luminance": 0.05349
}

Semantic roles & 50–950 ramp

primary
#7E1A2B
secondary
#42B29F
accent
#E9CC3F
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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