#7E1578#7E1578

#7E1578 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.174 H 330.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7E1578
RGBrgb(126, 21, 120)
HSLhsl(303, 71%, 29%)
HSVhsv(303, 83%, 49%)
CMYKcmyk(0%, 83.3%, 4.8%, 50.6%)
CIE-LABlab(30.23, 53.39, -30.75)
CIE-LCHlch(30.23, 61.61, 330.06°)
OKLaboklab(42.18% 0.1521 -0.0849)
OKLCHoklch(42.18% 0.174 330.8)
XYZxyz(12.2625, 6.3290, 18.3414)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1578 #157E1B
analogous
#50157E #7E1578 #7E1544
triadic
#7E1578 #787E15 #15787E
tetradic
#7E1578 #7E5015 #157E1B #15447E
square
#7E1578 #7E5015 #157E1B #15447E
split-complementary
#7E1578 #447E15 #157E50
monochromatic
#1A0419 #4A0C46 #7E1578 #B21EAA #DD31D3

Accessibility & contrast

On white

9.27
#7E1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1578
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1578#FFFFFF#000000##FFFFFF
##7E15781.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#832547
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1578;
/* rgb */ color: rgb(126, 21, 120);
/* oklch */ color: oklch(42.2% 0.174 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7629f',
    500: '#7e1578',
    950: '#000000',
  },
}
SCSS
$custom: #7e1578;
$custom-light: #a7629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1578",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 303.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.17417,
    "h": 330.8
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#7E1578
secondary
#3CB343
accent
#EE443A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1578

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

Preview Lab → · Contrast checker → · Palette generator →

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