#7E1159#7E1159

#7E1159 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.157 H 346.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#7E1159
RGBrgb(126, 17, 89)
HSLhsl(320, 76%, 28%)
HSVhsv(320, 87%, 49%)
CMYKcmyk(0%, 86.5%, 29.4%, 50.6%)
CIE-LABlab(28.27, 49.91, -13.80)
CIE-LCHlch(28.27, 51.78, 344.55°)
OKLaboklab(40.25% 0.1522 -0.0366)
OKLCHoklch(40.25% 0.157 346.5)
XYZxyz(10.6083, 5.5590, 9.9636)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1159 #117E36
analogous
#6C117E #7E1159 #7E1122
triadic
#7E1159 #597E11 #11597E
tetradic
#7E1159 #7E6C11 #117E36 #11227E
square
#7E1159 #7E6C11 #117E36 #11227E
split-complementary
#7E1159 #227E11 #117E6C
monochromatic
#1B0413 #480A33 #7E1159 #B4187F #E227A3

Accessibility & contrast

On white

9.95
#7E1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1159
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1159#FFFFFF#000000##FFFFFF
##7E11591.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23375B
Deuteranopia (green-blind)
#454957
Tritanopia (blue-blind)
#870C35
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1159;
/* rgb */ color: rgb(126, 17, 89);
/* oklch */ color: oklch(40.2% 0.157 346.5);
Tailwind
colors: {
  custom: {
    50: '#a85f88',
    500: '#7e1159',
    950: '#000000',
  },
}
SCSS
$custom: #7e1159;
$custom-light: #a85f88;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1159",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 320.367,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40249,
    "c": 0.15653,
    "h": 346.5
  },
  "luminance": 0.05558
}

Semantic roles & 50–950 ramp

primary
#7E1159
secondary
#37B461
accent
#F37535
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1159

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

Preview Lab → · Contrast checker → · Palette generator →

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