#7E1B2A#7E1B2A

#7E1B2A is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.4% C 0.133 H 17.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#7E1B2A
RGBrgb(126, 27, 42)
HSLhsl(351, 65%, 30%)
HSVhsv(351, 79%, 49%)
CMYKcmyk(0%, 78.6%, 66.7%, 50.6%)
CIE-LABlab(27.81, 42.50, 16.97)
CIE-LCHlch(27.81, 45.76, 21.77°)
OKLaboklab(39.43% 0.1265 0.0406)
OKLCHoklch(39.43% 0.133 17.8)
XYZxyz(9.4150, 5.3881, 2.7343)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B2A #1B7E6F
analogous
#7E1B5C #7E1B2A #7E3D1B
triadic
#7E1B2A #2A7E1B #1B2A7E
tetradic
#7E1B2A #5C7E1B #1B7E6F #3D1B7E
square
#7E1B2A #5C7E1B #1B7E6F #3D1B7E
split-complementary
#7E1B2A #1B7E3D #1B5C7E
monochromatic
#190508 #4C1019 #7E1B2A #B0263B #D63E55

Accessibility & contrast

On white

10.11
#7E1B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7E1B2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B2A
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B2A#FFFFFF#000000##FFFFFF
##7E1B2A1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37342A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8B0022
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1b2a;
/* rgb */ color: rgb(126, 27, 42);
/* oklch */ color: oklch(39.4% 0.133 17.8);
Tailwind
colors: {
  custom: {
    50: '#aa6163',
    500: '#7e1b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b2a;
$custom-light: #aa6163;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b2a",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 42
  },
  "hsl": {
    "h": 350.909,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39429,
    "c": 0.13284,
    "h": 17.8
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#7E1B2A
secondary
#43B2A1
accent
#E8CE40
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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