#7E1542#7E1542

#7E1542 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.6% C 0.142 H 1.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#7E1542
RGBrgb(126, 21, 66)
HSLhsl(334, 71%, 29%)
HSVhsv(334, 83%, 49%)
CMYKcmyk(0%, 83.3%, 47.6%, 50.6%)
CIE-LABlab(27.75, 46.31, 0.75)
CIE-LCHlch(27.75, 46.32, 0.93°)
OKLaboklab(39.59% 0.1423 0.0024)
OKLCHoklch(39.59% 0.142 1)
XYZxyz(9.8565, 5.3666, 5.6700)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1542 #157E51
analogous
#7E1577 #7E1542 #7E1D15
triadic
#7E1542 #427E15 #15427E
tetradic
#7E1542 #777E15 #157E51 #1D157E
square
#7E1542 #777E15 #157E51 #1D157E
split-complementary
#7E1542 #157E1D #15777E
monochromatic
#1A040E #4A0C27 #7E1542 #B21E5D #DD317A

Accessibility & contrast

On white

10.13
#7E1542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1542
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1542#FFFFFF#000000##FFFFFF
##7E15421.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3543
Deuteranopia (green-blind)
#4B4940
Tritanopia (blue-blind)
#89002A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1542;
/* rgb */ color: rgb(126, 21, 66);
/* oklch */ color: oklch(39.6% 0.142 1.0);
Tailwind
colors: {
  custom: {
    50: '#a85f76',
    500: '#7e1542',
    950: '#000000',
  },
}
SCSS
$custom: #7e1542;
$custom-light: #a85f76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1542",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 334.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39586,
    "c": 0.14233,
    "h": 1
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#7E1542
secondary
#3CB380
accent
#EEA13A
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7E1542

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

Preview Lab → · Contrast checker → · Palette generator →

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