#7E152F#7E152F

#7E152F is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.0% C 0.138 H 13.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#7E152F
RGBrgb(126, 21, 47)
HSLhsl(345, 71%, 29%)
HSVhsv(345, 83%, 49%)
CMYKcmyk(0%, 83.3%, 62.7%, 50.6%)
CIE-LABlab(27.24, 44.74, 12.87)
CIE-LCHlch(27.24, 46.56, 16.04°)
OKLaboklab(39.04% 0.1348 0.0316)
OKLCHoklch(39.04% 0.138 13.2)
XYZxyz(9.3864, 5.1786, 3.1941)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E152F #157E64
analogous
#7E1564 #7E152F #7E3015
triadic
#7E152F #2F7E15 #152F7E
tetradic
#7E152F #647E15 #157E64 #30157E
square
#7E152F #647E15 #157E64 #30157E
split-complementary
#7E152F #157E30 #15647E
monochromatic
#1A040A #4A0C1B #7E152F #B21E43 #DD315B

Accessibility & contrast

On white

10.32
#7E152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E152F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E152F#FFFFFF#000000##FFFFFF
##7E152F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34332F
Deuteranopia (green-blind)
#4E482C
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e152f;
/* rgb */ color: rgb(126, 21, 47);
/* oklch */ color: oklch(39.0% 0.138 13.2);
Tailwind
colors: {
  custom: {
    50: '#aa5f67',
    500: '#7e152f',
    950: '#000000',
  },
}
SCSS
$custom: #7e152f;
$custom-light: #aa5f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e152f",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 345.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.13841,
    "h": 13.2
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#7E152F
secondary
#3CB396
accent
#EEC13A
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7E152F

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

Preview Lab → · Contrast checker → · Palette generator →

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