#7F1571#7F1571

#7F1571 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.170 H 334.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7F1571
RGBrgb(127, 21, 113)
HSLhsl(308, 72%, 29%)
HSVhsv(308, 83%, 50%)
CMYKcmyk(0%, 83.5%, 11%, 50.2%)
CIE-LABlab(30.01, 52.50, -26.63)
CIE-LCHlch(30.01, 58.87, 333.11°)
OKLaboklab(41.93% 0.153 -0.073)
OKLCHoklch(41.93% 0.17 334.5)
XYZxyz(12.0013, 6.2417, 16.1923)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1571 #157F23
analogous
#58157F #7F1571 #7F153C
triadic
#7F1571 #717F15 #15717F
tetradic
#7F1571 #7F5815 #157F23 #153C7F
square
#7F1571 #7F5815 #157F23 #153C7F
split-complementary
#7F1571 #3C7F15 #157F58
monochromatic
#1A0417 #4A0C42 #7F1571 #B41EA0 #DD31C6

Accessibility & contrast

On white

9.34
#7F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1571
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1571#FFFFFF#000000##FFFFFF
##7F15711.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#852043
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1571;
/* rgb */ color: rgb(127, 21, 113);
/* oklch */ color: oklch(41.9% 0.170 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8629a',
    500: '#7f1571',
    950: '#000000',
  },
}
SCSS
$custom: #7f1571;
$custom-light: #a8629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1571",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 307.925,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41928,
    "c": 0.16951,
    "h": 334.5
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#7F1571
secondary
#3CB44C
accent
#EE5139
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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