#7E1758#7E1758

#7E1758 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.6% C 0.151 H 347.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7E1758
RGBrgb(126, 23, 88)
HSLhsl(322, 69%, 29%)
HSVhsv(322, 82%, 49%)
CMYKcmyk(0%, 81.7%, 30.2%, 50.6%)
CIE-LABlab(28.78, 48.19, -12.35)
CIE-LCHlch(28.78, 49.75, 345.62°)
OKLaboklab(40.61% 0.147 -0.0326)
OKLCHoklch(40.61% 0.151 347.5)
XYZxyz(10.6726, 5.7542, 9.7793)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1758 #177E3D
analogous
#71177E #7E1758 #7E1724
triadic
#7E1758 #587E17 #17587E
tetradic
#7E1758 #7E7117 #177E3D #17247E
square
#7E1758 #7E7117 #177E3D #17247E
split-complementary
#7E1758 #247E17 #177E71
monochromatic
#1A0512 #4A0E34 #7E1758 #B2207C #DA359D

Accessibility & contrast

On white

9.76
#7E1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1758
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1758#FFFFFF#000000##FFFFFF
##7E17581.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28395A
Deuteranopia (green-blind)
#464A56
Tritanopia (blue-blind)
#871236
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1758;
/* rgb */ color: rgb(126, 23, 88);
/* oklch */ color: oklch(40.6% 0.151 347.5);
Tailwind
colors: {
  custom: {
    50: '#a76187',
    500: '#7e1758',
    950: '#000000',
  },
}
SCSS
$custom: #7e1758;
$custom-light: #a76187;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1758",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 322.136,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40606,
    "c": 0.15056,
    "h": 347.5
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

primary
#7E1758
secondary
#3EB369
accent
#EC7D3C
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1758

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

Preview Lab → · Contrast checker → · Palette generator →

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