#5717A0#5717A0

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

Color values

HEX#5717A0
RGBrgb(87, 23, 160)
HSLhsl(268, 75%, 36%)
HSVhsv(268, 86%, 63%)
CMYKcmyk(45.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(27.23, 54.17, -60.74)
CIE-LCHlch(27.23, 81.39, 311.73°)
OKLaboklab(39.79% 0.0894 -0.1741)
OKLCHoklch(39.79% 0.196 297.2)
XYZxyz(10.5804, 5.1769, 33.6927)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5717A0 #60A017
analogous
#171CA0 #5717A0 #9B17A0
triadic
#5717A0 #A05717 #17A057
tetradic
#5717A0 #A0171C #60A017 #17A09B
square
#5717A0 #A0171C #60A017 #17A09B
split-complementary
#5717A0 #A09B17 #1CA017
monochromatic
#1D0835 #3A0F6A #5717A0 #741FD6 #944CE5

Accessibility & contrast

On white

10.32
#5717A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5717A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5717A0
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5717A0#FFFFFF#000000##FFFFFF
##5717A01.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5717a0;
/* rgb */ color: rgb(87, 23, 160);
/* oklch */ color: oklch(39.8% 0.196 297.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fbd',
    500: '#5717a0',
    950: '#000000',
  },
}
SCSS
$custom: #5717a0;
$custom-light: #8f5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5717a0",
  "rgb": {
    "r": 87,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 268.029,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39786,
    "c": 0.19571,
    "h": 297.2
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5717A0

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

Preview Lab → · Contrast checker → · Palette generator →

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