#7E1572#7E1572

#7E1572 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.170 H 333.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7E1572
RGBrgb(126, 21, 114)
HSLhsl(307, 71%, 29%)
HSVhsv(307, 83%, 49%)
CMYKcmyk(0%, 83.3%, 9.5%, 50.6%)
CIE-LABlab(29.88, 52.44, -27.49)
CIE-LCHlch(29.88, 59.20, 332.34°)
OKLaboklab(41.82% 0.152 -0.0755)
OKLCHoklch(41.82% 0.17 333.6)
XYZxyz(11.9097, 6.1879, 16.4835)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1572 #157E21
analogous
#56157E #7E1572 #7E153E
triadic
#7E1572 #727E15 #15727E
tetradic
#7E1572 #7E5615 #157E21 #153E7E
square
#7E1572 #7E5615 #157E21 #153E7E
split-complementary
#7E1572 #3E7E15 #157E56
monochromatic
#1A0418 #4A0C43 #7E1572 #B21EA1 #DD31C9

Accessibility & contrast

On white

9.39
#7E1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1572
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1572#FFFFFF#000000##FFFFFF
##7E15721.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#842144
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1572;
/* rgb */ color: rgb(126, 21, 114);
/* oklch */ color: oklch(41.8% 0.170 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1572',
    950: '#000000',
  },
}
SCSS
$custom: #7e1572;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1572",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 306.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.16971,
    "h": 333.6
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#7E1572
secondary
#3CB349
accent
#EE4E3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1572

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

Preview Lab → · Contrast checker → · Palette generator →

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