#7E1581#7E1581

#7E1581 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.181 H 326.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1581
RGBrgb(126, 21, 129)
HSLhsl(298, 72%, 29%)
HSVhsv(298, 84%, 51%)
CMYKcmyk(2.3%, 83.7%, 0%, 49.4%)
CIE-LABlab(30.78, 54.89, -35.55)
CIE-LCHlch(30.78, 65.39, 327.07°)
OKLaboklab(42.74% 0.1517 -0.0989)
OKLCHoklch(42.74% 0.181 326.9)
XYZxyz(12.8346, 6.5579, 21.3544)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1581 #188115
analogous
#481581 #7E1581 #81154E
triadic
#7E1581 #817E15 #15817E
tetradic
#7E1581 #814815 #188115 #154E81
square
#7E1581 #814815 #188115 #154E81
split-complementary
#7E1581 #4E8115 #158148
monochromatic
#1A041A #4B0C4C #7E1581 #B11EB6 #D933DE

Accessibility & contrast

On white

9.09
#7E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1581
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1581#FFFFFF#000000##FFFFFF
##7E15811.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#334D7F
Tritanopia (blue-blind)
#822A4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1581;
/* rgb */ color: rgb(126, 21, 129);
/* oklch */ color: oklch(42.7% 0.181 326.9);
Tailwind
colors: {
  custom: {
    50: '#a762a6',
    500: '#7e1581',
    950: '#000000',
  },
}
SCSS
$custom: #7e1581;
$custom-light: #a762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1581",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 298.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.18105,
    "h": 326.9
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#7E1581
secondary
#3FB63C
accent
#EF393E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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