#7D1581#7D1581

#7D1581 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.181 H 326.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7D1581
RGBrgb(125, 21, 129)
HSLhsl(298, 72%, 29%)
HSVhsv(298, 84%, 51%)
CMYKcmyk(3.1%, 83.7%, 0%, 49.4%)
CIE-LABlab(30.60, 54.68, -35.85)
CIE-LCHlch(30.60, 65.39, 326.75°)
OKLaboklab(42.58% 0.1505 -0.0998)
OKLCHoklch(42.58% 0.181 326.5)
XYZxyz(12.6878, 6.4822, 21.3475)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1581 #198115
analogous
#471581 #7D1581 #81154F
triadic
#7D1581 #817D15 #15817D
tetradic
#7D1581 #814715 #198115 #154F81
square
#7D1581 #814715 #198115 #154F81
split-complementary
#7D1581 #4F8115 #158147
monochromatic
#1A041A #4A0C4C #7D1581 #B01EB6 #D733DE

Accessibility & contrast

On white

9.15
#7D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7D1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1581
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1581#FFFFFF#000000##FFFFFF
##7D15811.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#324C7F
Tritanopia (blue-blind)
#802A4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1581;
/* rgb */ color: rgb(125, 21, 129);
/* oklch */ color: oklch(42.6% 0.181 326.5);
Tailwind
colors: {
  custom: {
    50: '#a662a6',
    500: '#7d1581',
    950: '#000000',
  },
}
SCSS
$custom: #7d1581;
$custom-light: #a662a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1581",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 297.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.18061,
    "h": 326.5
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#7D1581
secondary
#40B63C
accent
#EF3940
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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