#5F17A1#5F17A1

#5F17A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.9% C 0.198 H 300.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F17A1
RGBrgb(95, 23, 161)
HSLhsl(271, 75%, 36%)
HSVhsv(271, 86%, 63%)
CMYKcmyk(41%, 85.7%, 0%, 36.9%)
CIE-LABlab(28.43, 55.48, -59.34)
CIE-LCHlch(28.43, 81.24, 313.08°)
OKLaboklab(40.88% 0.1015 -0.1697)
OKLCHoklch(40.88% 0.198 300.9)
XYZxyz(11.4571, 5.6188, 34.1922)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F17A1 #59A117
analogous
#1A17A1 #5F17A1 #A1179E
triadic
#5F17A1 #A15F17 #17A15F
tetradic
#5F17A1 #A11A17 #59A117 #179EA1
square
#5F17A1 #A11A17 #59A117 #179EA1
split-complementary
#5F17A1 #9EA117 #17A11A
monochromatic
#200836 #3F0F6B #5F17A1 #7F1FD7 #9D4DE6

Accessibility & contrast

On white

9.89
#5F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F17A1
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F17A1#FFFFFF#000000##FFFFFF
##5F17A11.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#50405F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f17a1;
/* rgb */ color: rgb(95, 23, 161);
/* oklch */ color: oklch(40.9% 0.198 300.9);
Tailwind
colors: {
  custom: {
    50: '#9460be',
    500: '#5f17a1',
    950: '#000000',
  },
}
SCSS
$custom: #5f17a1;
$custom-light: #9460be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f17a1",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 271.304,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40875,
    "c": 0.19775,
    "h": 300.9
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

primary
#5F17A1
secondary
#87C74C
accent
#F23690
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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