#5F1572#5F1572

#5F1572 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.155 H 318.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5F1572
RGBrgb(95, 21, 114)
HSLhsl(288, 69%, 26%)
HSVhsv(288, 82%, 45%)
CMYKcmyk(16.7%, 81.6%, 0%, 55.3%)
CIE-LABlab(24.27, 45.76, -36.76)
CIE-LCHlch(24.27, 58.70, 321.22°)
OKLaboklab(36.76% 0.1158 -0.1034)
OKLCHoklch(36.76% 0.155 318.2)
XYZxyz(8.0243, 4.1845, 16.3013)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1572 #287215
analogous
#311572 #5F1572 #721557
triadic
#5F1572 #725F15 #15725F
tetradic
#5F1572 #723115 #287215 #155772
square
#5F1572 #723115 #287215 #155772
split-complementary
#5F1572 #577215 #157231
monochromatic
#16051A #340B3E #5F1572 #8A1FA6 #B42AD8

Accessibility & contrast

On white

11.43
#5F1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1572
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1572#FFFFFF#000000##FFFFFF
##5F15721.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#5E2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1572;
/* rgb */ color: rgb(95, 21, 114);
/* oklch */ color: oklch(36.8% 0.155 318.2);
Tailwind
colors: {
  custom: {
    50: '#905c9b',
    500: '#5f1572',
    950: '#000000',
  },
}
SCSS
$custom: #5f1572;
$custom-light: #905c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1572",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 287.742,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.15526,
    "h": 318.2
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#5F1572
secondary
#51A83B
accent
#EC3C60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1572

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

Preview Lab → · Contrast checker → · Palette generator →

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