#5817A0#5817A0

#5817A0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.196 H 297.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5817A0
RGBrgb(88, 23, 160)
HSLhsl(268, 75%, 36%)
HSVhsv(268, 86%, 63%)
CMYKcmyk(45%, 85.6%, 0%, 37.3%)
CIE-LABlab(27.37, 54.30, -60.51)
CIE-LCHlch(27.37, 81.31, 311.91°)
OKLaboklab(39.91% 0.091 -0.1734)
OKLCHoklch(39.91% 0.196 297.7)
XYZxyz(10.6744, 5.2254, 33.6971)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5817A0 #5FA017
analogous
#171BA0 #5817A0 #9C17A0
triadic
#5817A0 #A05817 #17A058
tetradic
#5817A0 #A0171B #5FA017 #17A09C
square
#5817A0 #A0171B #5FA017 #17A09C
split-complementary
#5817A0 #A09C17 #1BA017
monochromatic
#1D0835 #3B0F6A #5817A0 #751FD6 #954CE5

Accessibility & contrast

On white

10.27
#5817A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5817A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5817A0
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5817A0#FFFFFF#000000##FFFFFF
##5817A01.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#45415F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5817a0;
/* rgb */ color: rgb(88, 23, 160);
/* oklch */ color: oklch(39.9% 0.196 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f5fbd',
    500: '#5817a0',
    950: '#000000',
  },
}
SCSS
$custom: #5817a0;
$custom-light: #8f5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5817a0",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 268.467,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39908,
    "c": 0.19582,
    "h": 297.7
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#5817A0
secondary
#8DC74C
accent
#F13699
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5817A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5817A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva