#7E1574#7E1574

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

Color values

HEX#7E1574
RGBrgb(126, 21, 116)
HSLhsl(306, 71%, 29%)
HSVhsv(306, 83%, 49%)
CMYKcmyk(0%, 83.3%, 7.9%, 50.6%)
CIE-LABlab(30.00, 52.75, -28.58)
CIE-LCHlch(30.00, 60.00, 331.55°)
OKLaboklab(41.93% 0.152 -0.0786)
OKLCHoklch(41.93% 0.171 332.6)
XYZxyz(12.0248, 6.2340, 17.0896)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1574 #157E1F
analogous
#54157E #7E1574 #7E1540
triadic
#7E1574 #747E15 #15747E
tetradic
#7E1574 #7E5415 #157E1F #15407E
square
#7E1574 #7E5415 #157E1F #15407E
split-complementary
#7E1574 #407E15 #157E54
monochromatic
#1A0418 #4A0C44 #7E1574 #B21EA4 #DD31CC

Accessibility & contrast

On white

9.35
#7E1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1574
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1574#FFFFFF#000000##FFFFFF
##7E15741.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3D76
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#842345
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1574;
/* rgb */ color: rgb(126, 21, 116);
/* oklch */ color: oklch(41.9% 0.171 332.6);
Tailwind
colors: {
  custom: {
    50: '#a7629c',
    500: '#7e1574',
    950: '#000000',
  },
}
SCSS
$custom: #7e1574;
$custom-light: #a7629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1574",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 305.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41934,
    "c": 0.17118,
    "h": 332.6
  },
  "luminance": 0.06233
}

Semantic roles & 50–950 ramp

primary
#7E1574
secondary
#3CB347
accent
#EE4B3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1574

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

Preview Lab → · Contrast checker → · Palette generator →

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