#5F1571#5F1571

#5F1571 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.154 H 318.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5F1571
RGBrgb(95, 21, 113)
HSLhsl(288, 69%, 26%)
HSVhsv(288, 81%, 44%)
CMYKcmyk(15.9%, 81.4%, 0%, 55.7%)
CIE-LABlab(24.20, 45.55, -36.24)
CIE-LCHlch(24.20, 58.21, 321.50°)
OKLaboklab(36.68% 0.116 -0.1019)
OKLCHoklch(36.68% 0.154 318.7)
XYZxyz(7.9677, 4.1619, 16.0032)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1571 #277115
analogous
#311571 #5F1571 #711555
triadic
#5F1571 #715F15 #15715F
tetradic
#5F1571 #713115 #277115 #155571
square
#5F1571 #713115 #277115 #155571
split-complementary
#5F1571 #557115 #157131
monochromatic
#16051A #340B3D #5F1571 #8A1FA5 #B529D7

Accessibility & contrast

On white

11.46
#5F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1571
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1571#FFFFFF#000000##FFFFFF
##5F15711.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#5F2943
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1571;
/* rgb */ color: rgb(95, 21, 113);
/* oklch */ color: oklch(36.7% 0.154 318.7);
Tailwind
colors: {
  custom: {
    50: '#905c9a',
    500: '#5f1571',
    950: '#000000',
  },
}
SCSS
$custom: #5f1571;
$custom-light: #905c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1571",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 288.261,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.15435,
    "h": 318.7
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#5F1571
secondary
#50A73B
accent
#EB3C5F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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