#7E152B#7E152B

#7E152B is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.9% C 0.138 H 15.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#7E152B
RGBrgb(126, 21, 43)
HSLhsl(347, 71%, 29%)
HSVhsv(347, 83%, 49%)
CMYKcmyk(0%, 83.3%, 65.9%, 50.6%)
CIE-LABlab(27.15, 44.48, 15.45)
CIE-LCHlch(27.15, 47.09, 19.15°)
OKLaboklab(38.95% 0.1331 0.0373)
OKLCHoklch(38.95% 0.138 15.6)
XYZxyz(9.3094, 5.1478, 2.7885)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E152B #157E68
analogous
#7E1560 #7E152B #7E3415
triadic
#7E152B #2B7E15 #152B7E
tetradic
#7E152B #607E15 #157E68 #34157E
square
#7E152B #607E15 #157E68 #34157E
split-complementary
#7E152B #157E34 #15607E
monochromatic
#1A0409 #4A0C19 #7E152B #B21E3D #DD3155

Accessibility & contrast

On white

10.35
#7E152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E152B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E152B#FFFFFF#000000##FFFFFF
##7E152B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34322B
Deuteranopia (green-blind)
#4F4828
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e152b;
/* rgb */ color: rgb(126, 21, 43);
/* oklch */ color: oklch(38.9% 0.138 15.6);
Tailwind
colors: {
  custom: {
    50: '#aa5f64',
    500: '#7e152b',
    950: '#000000',
  },
}
SCSS
$custom: #7e152b;
$custom-light: #aa5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e152b",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 347.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38946,
    "c": 0.13818,
    "h": 15.6
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#7E152B
secondary
#3CB39A
accent
#EEC83A
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E152B

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

Preview Lab → · Contrast checker → · Palette generator →

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