#5F17A0#5F17A0

#5F17A0 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.197 H 301.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5F17A0
RGBrgb(95, 23, 160)
HSLhsl(272, 75%, 36%)
HSVhsv(272, 86%, 63%)
CMYKcmyk(40.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(28.34, 55.25, -58.88)
CIE-LCHlch(28.34, 80.75, 313.18°)
OKLaboklab(40.78% 0.1018 -0.1684)
OKLCHoklch(40.78% 0.197 301.2)
XYZxyz(11.3693, 5.5837, 33.7297)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F17A0 #58A017
analogous
#1B17A0 #5F17A0 #A0179C
triadic
#5F17A0 #A05F17 #17A05F
tetradic
#5F17A0 #A01B17 #58A017 #179CA0
square
#5F17A0 #A01B17 #58A017 #179CA0
split-complementary
#5F17A0 #9CA017 #17A01B
monochromatic
#1F0835 #3F0F6A #5F17A0 #7F1FD6 #9D4CE5

Accessibility & contrast

On white

9.92
#5F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F17A0
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F17A0#FFFFFF#000000##FFFFFF
##5F17A01.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f17a0;
/* rgb */ color: rgb(95, 23, 160);
/* oklch */ color: oklch(40.8% 0.197 301.2);
Tailwind
colors: {
  custom: {
    50: '#9360bd',
    500: '#5f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f17a0;
$custom-light: #9360bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f17a0",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 271.533,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40783,
    "c": 0.19678,
    "h": 301.2
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#5F17A0
secondary
#86C74C
accent
#F1368F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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