#7E1A2A#7E1A2A

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

Color values

HEX#7E1A2A
RGBrgb(126, 26, 42)
HSLhsl(350, 66%, 30%)
HSVhsv(350, 79%, 49%)
CMYKcmyk(0%, 79.4%, 66.7%, 50.6%)
CIE-LABlab(27.69, 42.84, 16.81)
CIE-LCHlch(27.69, 46.02, 21.43°)
OKLaboklab(39.34% 0.1276 0.0403)
OKLCHoklch(39.34% 0.134 17.5)
XYZxyz(9.3925, 5.3430, 2.7268)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A2A #1A7E6E
analogous
#7E1A5C #7E1A2A #7E3C1A
triadic
#7E1A2A #2A7E1A #1A2A7E
tetradic
#7E1A2A #5C7E1A #1A7E6E #3C1A7E
square
#7E1A2A #5C7E1A #1A7E6E #3C1A7E
split-complementary
#7E1A2A #1A7E3C #1A5C7E
monochromatic
#190508 #4B1019 #7E1A2A #B1243B #D73C55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1A2A#FFFFFF#000000##FFFFFF
##7E1A2A1.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)
#37342A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1a2a;
/* rgb */ color: rgb(126, 26, 42);
/* oklch */ color: oklch(39.3% 0.134 17.5);
Tailwind
colors: {
  custom: {
    50: '#aa6163',
    500: '#7e1a2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a2a;
$custom-light: #aa6163;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a2a",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 42
  },
  "hsl": {
    "h": 350.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.13378,
    "h": 17.5
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#7E1A2A
secondary
#42B2A0
accent
#E9CE3F
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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