#7E1571#7E1571

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

Color values

HEX#7E1571
RGBrgb(126, 21, 113)
HSLhsl(307, 71%, 29%)
HSVhsv(307, 83%, 49%)
CMYKcmyk(0%, 83.3%, 10.3%, 50.6%)
CIE-LABlab(29.83, 52.28, -26.94)
CIE-LCHlch(29.83, 58.81, 332.74°)
OKLaboklab(41.76% 0.152 -0.0739)
OKLCHoklch(41.76% 0.169 334.1)
XYZxyz(11.8531, 6.1653, 16.1853)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1571 #157E22
analogous
#57157E #7E1571 #7E153D
triadic
#7E1571 #717E15 #15717E
tetradic
#7E1571 #7E5715 #157E22 #153D7E
square
#7E1571 #7E5715 #157E22 #153D7E
split-complementary
#7E1571 #3D7E15 #157E57
monochromatic
#1A0418 #4A0C42 #7E1571 #B21EA0 #DD31C7

Accessibility & contrast

On white

9.41
#7E1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1571
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1571#FFFFFF#000000##FFFFFF
##7E15711.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#3C4B6F
Tritanopia (blue-blind)
#842143
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1571;
/* rgb */ color: rgb(126, 21, 113);
/* oklch */ color: oklch(41.8% 0.169 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7619a',
    500: '#7e1571',
    950: '#000000',
  },
}
SCSS
$custom: #7e1571;
$custom-light: #a7619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1571",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 307.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.16898,
    "h": 334.1
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#7E1571
secondary
#3CB34A
accent
#EE503A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1571

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

Preview Lab → · Contrast checker → · Palette generator →

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