#5F1573#5F1573

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

Color values

HEX#5F1573
RGBrgb(95, 21, 115)
HSLhsl(287, 69%, 27%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(17.4%, 81.7%, 0%, 54.9%)
CIE-LABlab(24.35, 45.96, -37.29)
CIE-LCHlch(24.35, 59.18, 320.95°)
OKLaboklab(36.83% 0.1156 -0.105)
OKLCHoklch(36.83% 0.156 317.8)
XYZxyz(8.0815, 4.2074, 16.6027)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1573 #297315
analogous
#301573 #5F1573 #731558
triadic
#5F1573 #735F15 #15735F
tetradic
#5F1573 #733015 #297315 #155873
square
#5F1573 #733015 #297315 #155873
split-complementary
#5F1573 #587315 #157330
monochromatic
#15051A #340C3F #5F1573 #8A1EA7 #B32AD8

Accessibility & contrast

On white

11.40
#5F1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1573
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1573#FFFFFF#000000##FFFFFF
##5F15731.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#183C71
Tritanopia (blue-blind)
#5E2A44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1573;
/* rgb */ color: rgb(95, 21, 115);
/* oklch */ color: oklch(36.8% 0.156 317.8);
Tailwind
colors: {
  custom: {
    50: '#905c9c',
    500: '#5f1573',
    950: '#000000',
  },
}
SCSS
$custom: #5f1573;
$custom-light: #905c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1573",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 287.234,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.15617,
    "h": 317.8
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#5F1573
secondary
#52A93B
accent
#EC3C61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1573

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

Preview Lab → · Contrast checker → · Palette generator →

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