#7E1573#7E1573

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

Color values

HEX#7E1573
RGBrgb(126, 21, 115)
HSLhsl(306, 71%, 29%)
HSVhsv(306, 83%, 49%)
CMYKcmyk(0%, 83.3%, 8.7%, 50.6%)
CIE-LABlab(29.94, 52.59, -28.03)
CIE-LCHlch(29.94, 59.60, 331.94°)
OKLaboklab(41.88% 0.152 -0.0771)
OKLCHoklch(41.88% 0.17 333.1)
XYZxyz(11.9669, 6.2108, 16.7849)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1573 #157E20
analogous
#55157E #7E1573 #7E153F
triadic
#7E1573 #737E15 #15737E
tetradic
#7E1573 #7E5515 #157E20 #153F7E
square
#7E1573 #7E5515 #157E20 #153F7E
split-complementary
#7E1573 #3F7E15 #157E55
monochromatic
#1A0418 #4A0C43 #7E1573 #B21EA3 #DD31CB

Accessibility & contrast

On white

9.37
#7E1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1573
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1573#FFFFFF#000000##FFFFFF
##7E15731.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3D75
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#842244
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1573;
/* rgb */ color: rgb(126, 21, 115);
/* oklch */ color: oklch(41.9% 0.170 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1573',
    950: '#000000',
  },
}
SCSS
$custom: #7e1573;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1573",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 306.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.17044,
    "h": 333.1
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#7E1573
secondary
#3CB348
accent
#EE4D3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1573

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

Preview Lab → · Contrast checker → · Palette generator →

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