#7D1572#7D1572

#7D1572 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.169 H 333.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7D1572
RGBrgb(125, 21, 114)
HSLhsl(306, 71%, 29%)
HSVhsv(306, 83%, 49%)
CMYKcmyk(0%, 83.2%, 8.8%, 51%)
CIE-LABlab(29.69, 52.21, -27.80)
CIE-LCHlch(29.69, 59.15, 331.97°)
OKLaboklab(41.65% 0.151 -0.0764)
OKLCHoklch(41.65% 0.169 333.2)
XYZxyz(11.7630, 6.1122, 16.4766)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1572 #157D20
analogous
#54157D #7D1572 #7D153E
triadic
#7D1572 #727D15 #15727D
tetradic
#7D1572 #7D5415 #157D20 #153E7D
square
#7D1572 #7D5415 #157D20 #153E7D
split-complementary
#7D1572 #3E7D15 #157D54
monochromatic
#1A0418 #490C42 #7D1572 #B11EA2 #DC30CA

Accessibility & contrast

On white

9.45
#7D1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7D1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1572
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1572#FFFFFF#000000##FFFFFF
##7D15721.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#832244
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1572;
/* rgb */ color: rgb(125, 21, 114);
/* oklch */ color: oklch(41.6% 0.169 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6619b',
    500: '#7d1572',
    950: '#000000',
  },
}
SCSS
$custom: #7d1572;
$custom-light: #a6619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1572",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 306.346,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.16919,
    "h": 333.2
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#7D1572
secondary
#3CB248
accent
#EE4D3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1572

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

Preview Lab → · Contrast checker → · Palette generator →

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