#7E1557#7E1557

#7E1557 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.4% C 0.152 H 347.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#7E1557
RGBrgb(126, 21, 87)
HSLhsl(322, 71%, 29%)
HSVhsv(322, 83%, 49%)
CMYKcmyk(0%, 83.3%, 31%, 50.6%)
CIE-LABlab(28.54, 48.63, -12.07)
CIE-LCHlch(28.54, 50.11, 346.07°)
OKLaboklab(40.42% 0.1485 -0.0318)
OKLCHoklch(40.42% 0.152 347.9)
XYZxyz(10.5932, 5.6613, 9.5499)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1557 #157E3C
analogous
#71157E #7E1557 #7E1522
triadic
#7E1557 #577E15 #15577E
tetradic
#7E1557 #7E7115 #157E3C #15227E
square
#7E1557 #7E7115 #157E3C #15227E
split-complementary
#7E1557 #227E15 #157E71
monochromatic
#1A0412 #4A0C33 #7E1557 #B21E7B #DD319D

Accessibility & contrast

On white

9.85
#7E1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E1557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1557
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1557#FFFFFF#000000##FFFFFF
##7E15571.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273859
Deuteranopia (green-blind)
#464A55
Tritanopia (blue-blind)
#880F35
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1557;
/* rgb */ color: rgb(126, 21, 87);
/* oklch */ color: oklch(40.4% 0.152 347.9);
Tailwind
colors: {
  custom: {
    50: '#a76086',
    500: '#7e1557',
    950: '#000000',
  },
}
SCSS
$custom: #7e1557;
$custom-light: #a76086;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1557",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 322.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40416,
    "c": 0.15191,
    "h": 347.9
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#7E1557
secondary
#3CB368
accent
#EE7D3A
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1557

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

Preview Lab → · Contrast checker → · Palette generator →

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