#7D1571#7D1571

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

Color values

HEX#7D1571
RGBrgb(125, 21, 113)
HSLhsl(307, 71%, 29%)
HSVhsv(307, 83%, 49%)
CMYKcmyk(0%, 83.2%, 9.6%, 51%)
CIE-LABlab(29.64, 52.06, -27.25)
CIE-LCHlch(29.64, 58.76, 332.37°)
OKLaboklab(41.59% 0.1509 -0.0748)
OKLCHoklch(41.59% 0.168 333.6)
XYZxyz(11.7064, 6.0896, 16.1785)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1571 #157D21
analogous
#55157D #7D1571 #7D153D
triadic
#7D1571 #717D15 #15717D
tetradic
#7D1571 #7D5515 #157D21 #153D7D
square
#7D1571 #7D5515 #157D21 #153D7D
split-complementary
#7D1571 #3D7D15 #157D55
monochromatic
#1A0418 #490C42 #7D1571 #B11EA0 #DC30C8

Accessibility & contrast

On white

9.47
#7D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1571
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1571#FFFFFF#000000##FFFFFF
##7D15711.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#832143
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1571;
/* rgb */ color: rgb(125, 21, 113);
/* oklch */ color: oklch(41.6% 0.168 333.6);
Tailwind
colors: {
  custom: {
    50: '#a6619a',
    500: '#7d1571',
    950: '#000000',
  },
}
SCSS
$custom: #7d1571;
$custom-light: #a6619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1571",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 306.923,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41588,
    "c": 0.16846,
    "h": 333.6
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#7D1571
secondary
#3CB249
accent
#EE4F3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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