#7E1576#7E1576

#7E1576 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.173 H 331.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E1576
RGBrgb(126, 21, 118)
HSLhsl(305, 71%, 29%)
HSVhsv(305, 83%, 49%)
CMYKcmyk(0%, 83.3%, 6.3%, 50.6%)
CIE-LABlab(30.11, 53.07, -29.67)
CIE-LCHlch(30.11, 60.80, 330.79°)
OKLaboklab(42.05% 0.1521 -0.0818)
OKLCHoklch(42.05% 0.173 331.7)
XYZxyz(12.1424, 6.2810, 17.7089)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1576 #157E1D
analogous
#52157E #7E1576 #7E1542
triadic
#7E1576 #767E15 #15767E
tetradic
#7E1576 #7E5215 #157E1D #15427E
square
#7E1576 #7E5215 #157E1D #15427E
split-complementary
#7E1576 #427E15 #157E52
monochromatic
#1A0419 #4A0C45 #7E1576 #B21EA7 #DD31D0

Accessibility & contrast

On white

9.31
#7E1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1576
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1576#FFFFFF#000000##FFFFFF
##7E15761.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083E78
Deuteranopia (green-blind)
#3A4C74
Tritanopia (blue-blind)
#842446
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1576;
/* rgb */ color: rgb(126, 21, 118);
/* oklch */ color: oklch(42.1% 0.173 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7629e',
    500: '#7e1576',
    950: '#000000',
  },
}
SCSS
$custom: #7e1576;
$custom-light: #a7629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1576",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 304.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42053,
    "c": 0.17267,
    "h": 331.7
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#7E1576
secondary
#3CB345
accent
#EE473A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1576

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

Preview Lab → · Contrast checker → · Palette generator →

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