#5F1591#5F1591

#5F1591 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.184 H 306.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1591
RGBrgb(95, 21, 145)
HSLhsl(276, 75%, 33%)
HSVhsv(276, 86%, 57%)
CMYKcmyk(34.5%, 85.5%, 0%, 43.1%)
CIE-LABlab(26.77, 52.44, -52.24)
CIE-LCHlch(26.77, 74.02, 315.11°)
OKLaboklab(39.29% 0.1082 -0.1489)
OKLCHoklch(39.29% 0.184 306)
XYZxyz(10.0972, 5.0137, 27.2184)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1591 #479115
analogous
#211591 #5F1591 #911585
triadic
#5F1591 #915F15 #15915F
tetradic
#5F1591 #912115 #479115 #158591
square
#5F1591 #912115 #479115 #158591
split-complementary
#5F1591 #859115 #159121
monochromatic
#190626 #3C0D5C #5F1591 #821DC6 #A03DE3

Accessibility & contrast

On white

10.49
#5F1591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F1591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1591
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1591#FFFFFF#000000##FFFFFF
##5F15911.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#563855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1591;
/* rgb */ color: rgb(95, 21, 145);
/* oklch */ color: oklch(39.3% 0.184 306.0);
Tailwind
colors: {
  custom: {
    50: '#925eb2',
    500: '#5f1591',
    950: '#000000',
  },
}
SCSS
$custom: #5f1591;
$custom-light: #925eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1591",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 145
  },
  "hsl": {
    "h": 275.806,
    "s": 74.699,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39289,
    "c": 0.18405,
    "h": 306
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#5F1591
secondary
#74C33F
accent
#F13682
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1591

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

Preview Lab → · Contrast checker → · Palette generator →

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