#7E1B28#7E1B28

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

Color values

HEX#7E1B28
RGBrgb(126, 27, 40)
HSLhsl(352, 65%, 30%)
HSVhsv(352, 79%, 49%)
CMYKcmyk(0%, 78.6%, 68.3%, 50.6%)
CIE-LABlab(27.77, 42.38, 18.25)
CIE-LCHlch(27.77, 46.14, 23.30°)
OKLaboklab(39.39% 0.1256 0.0433)
OKLCHoklch(39.39% 0.133 19)
XYZxyz(9.3801, 5.3741, 2.5505)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B28 #1B7E71
analogous
#7E1B5A #7E1B28 #7E3F1B
triadic
#7E1B28 #287E1B #1B287E
tetradic
#7E1B28 #5A7E1B #1B7E71 #3F1B7E
square
#7E1B28 #5A7E1B #1B7E71 #3F1B7E
split-complementary
#7E1B28 #1B7E3F #1B5A7E
monochromatic
#190508 #4C1018 #7E1B28 #B02638 #D63E52

Accessibility & contrast

On white

10.12
#7E1B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B28
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B28#FFFFFF#000000##FFFFFF
##7E1B281.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383428
Deuteranopia (green-blind)
#504925
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1b28;
/* rgb */ color: rgb(126, 27, 40);
/* oklch */ color: oklch(39.4% 0.133 19.0);
Tailwind
colors: {
  custom: {
    50: '#aa6161',
    500: '#7e1b28',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b28;
$custom-light: #aa6161;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b28",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 40
  },
  "hsl": {
    "h": 352.121,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39389,
    "c": 0.13288,
    "h": 19
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#7E1B28
secondary
#43B2A3
accent
#E8D240
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1B28

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

Preview Lab → · Contrast checker → · Palette generator →

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