#7E1157#7E1157

#7E1157 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.2% C 0.155 H 347.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#7E1157
RGBrgb(126, 17, 87)
HSLhsl(321, 76%, 28%)
HSVhsv(321, 87%, 49%)
CMYKcmyk(0%, 86.5%, 31%, 50.6%)
CIE-LABlab(28.18, 49.66, -12.61)
CIE-LCHlch(28.18, 51.24, 345.75°)
OKLaboklab(40.16% 0.1518 -0.0333)
OKLCHoklch(40.16% 0.155 347.6)
XYZxyz(10.5255, 5.5259, 9.5273)
Luminance0.0553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1157 #117E38
analogous
#6E117E #7E1157 #7E1120
triadic
#7E1157 #577E11 #11577E
tetradic
#7E1157 #7E6E11 #117E38 #11207E
square
#7E1157 #7E6E11 #117E38 #11207E
split-complementary
#7E1157 #207E11 #117E6E
monochromatic
#1B0413 #480A32 #7E1157 #B4187C #E2279F

Accessibility & contrast

On white

9.98
#7E1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1157
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1157#FFFFFF#000000##FFFFFF
##7E11571.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253759
Deuteranopia (green-blind)
#454955
Tritanopia (blue-blind)
#880A34
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1157;
/* rgb */ color: rgb(126, 17, 87);
/* oklch */ color: oklch(40.2% 0.155 347.6);
Tailwind
colors: {
  custom: {
    50: '#a85f86',
    500: '#7e1157',
    950: '#000000',
  },
}
SCSS
$custom: #7e1157;
$custom-light: #a85f86;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1157",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 321.468,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40157,
    "c": 0.1554,
    "h": 347.6
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#7E1157
secondary
#37B464
accent
#F37935
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1157

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

Preview Lab → · Contrast checker → · Palette generator →

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