#7E1158#7E1158

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

Color values

HEX#7E1158
RGBrgb(126, 17, 88)
HSLhsl(321, 76%, 28%)
HSVhsv(321, 87%, 49%)
CMYKcmyk(0%, 86.5%, 30.2%, 50.6%)
CIE-LABlab(28.23, 49.79, -13.21)
CIE-LCHlch(28.23, 51.51, 345.14°)
OKLaboklab(40.2% 0.152 -0.0349)
OKLCHoklch(40.2% 0.156 347.1)
XYZxyz(10.5666, 5.5423, 9.7440)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1158 #117E37
analogous
#6D117E #7E1158 #7E1122
triadic
#7E1158 #587E11 #11587E
tetradic
#7E1158 #7E6D11 #117E37 #11227E
square
#7E1158 #7E6D11 #117E37 #11227E
split-complementary
#7E1158 #227E11 #117E6D
monochromatic
#1B0413 #480A32 #7E1158 #B4187E #E227A1

Accessibility & contrast

On white

9.96
#7E1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1158
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1158#FFFFFF#000000##FFFFFF
##7E11581.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24375A
Deuteranopia (green-blind)
#454956
Tritanopia (blue-blind)
#870B34
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1158;
/* rgb */ color: rgb(126, 17, 88);
/* oklch */ color: oklch(40.2% 0.156 347.1);
Tailwind
colors: {
  custom: {
    50: '#a85f87',
    500: '#7e1158',
    950: '#000000',
  },
}
SCSS
$custom: #7e1158;
$custom-light: #a85f87;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1158",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 320.917,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40203,
    "c": 0.15596,
    "h": 347.1
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#7E1158
secondary
#37B462
accent
#F37735
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1158

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

Preview Lab → · Contrast checker → · Palette generator →

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