#5715A0#5715A0

#5715A0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.197 H 297.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5715A0
RGBrgb(87, 21, 160)
HSLhsl(268, 77%, 35%)
HSVhsv(268, 87%, 63%)
CMYKcmyk(45.6%, 86.9%, 0%, 37.3%)
CIE-LABlab(27.02, 54.81, -61.09)
CIE-LCHlch(27.02, 82.07, 311.90°)
OKLaboklab(39.64% 0.0906 -0.1751)
OKLCHoklch(39.64% 0.197 297.3)
XYZxyz(10.5421, 5.1004, 33.6799)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5715A0 #5EA015
analogous
#1518A0 #5715A0 #9C15A0
triadic
#5715A0 #A05715 #15A057
tetradic
#5715A0 #A01518 #5EA015 #15A09C
square
#5715A0 #A01518 #5EA015 #15A09C
split-complementary
#5715A0 #A09C15 #18A015
monochromatic
#1C0734 #3A0E6A #5715A0 #741CD6 #9448E7

Accessibility & contrast

On white

10.40
#5715A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5715A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5715A0
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5715A0#FFFFFF#000000##FFFFFF
##5715A01.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#43405E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5715a0;
/* rgb */ color: rgb(87, 21, 160);
/* oklch */ color: oklch(39.6% 0.197 297.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ebd',
    500: '#5715a0',
    950: '#000000',
  },
}
SCSS
$custom: #5715a0;
$custom-light: #8f5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5715a0",
  "rgb": {
    "r": 87,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 268.489,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3964,
    "c": 0.19714,
    "h": 297.3
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#5715A0
secondary
#8CC849
accent
#F33499
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5715A0

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

Preview Lab → · Contrast checker → · Palette generator →

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