#7E1579#7E1579

#7E1579 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.175 H 330.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1579
RGBrgb(126, 21, 121)
HSLhsl(303, 71%, 29%)
HSVhsv(303, 83%, 49%)
CMYKcmyk(0%, 83.3%, 4%, 50.6%)
CIE-LABlab(30.29, 53.55, -31.29)
CIE-LCHlch(30.29, 62.03, 329.70°)
OKLaboklab(42.24% 0.152 -0.0865)
OKLCHoklch(42.24% 0.175 330.4)
XYZxyz(12.3235, 6.3534, 18.6627)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1579 #157E1A
analogous
#4F157E #7E1579 #7E1545
triadic
#7E1579 #797E15 #15797E
tetradic
#7E1579 #7E4F15 #157E1A #15457E
square
#7E1579 #7E4F15 #157E1A #15457E
split-complementary
#7E1579 #457E15 #157E4F
monochromatic
#1A0419 #4A0C47 #7E1579 #B21EAB #DD31D4

Accessibility & contrast

On white

9.25
#7E1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1579
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1579#FFFFFF#000000##FFFFFF
##7E15791.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7C
Deuteranopia (green-blind)
#384C77
Tritanopia (blue-blind)
#832548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1579;
/* rgb */ color: rgb(126, 21, 121);
/* oklch */ color: oklch(42.2% 0.175 330.4);
Tailwind
colors: {
  custom: {
    50: '#a762a0',
    500: '#7e1579',
    950: '#000000',
  },
}
SCSS
$custom: #7e1579;
$custom-light: #a762a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1579",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 302.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42236,
    "c": 0.17492,
    "h": 330.4
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#7E1579
secondary
#3CB341
accent
#EE423A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1579

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

Preview Lab → · Contrast checker → · Palette generator →

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