#5720A6#5720A6

#5720A6 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.194 H 294.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5720A6
RGBrgb(87, 32, 166)
HSLhsl(265, 68%, 39%)
HSVhsv(265, 81%, 65%)
CMYKcmyk(47.6%, 80.7%, 0%, 34.9%)
CIE-LABlab(28.93, 52.38, -61.58)
CIE-LCHlch(28.93, 80.85, 310.38°)
OKLaboklab(41.14% 0.0813 -0.1767)
OKLCHoklch(41.14% 0.194 294.7)
XYZxyz(11.3280, 5.8121, 36.5940)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5720A6 #6FA620
analogous
#202CA6 #5720A6 #9A20A6
triadic
#5720A6 #A65720 #20A657
tetradic
#5720A6 #A6202C #6FA620 #20A69A
square
#5720A6 #A6202C #6FA620 #20A69A
split-complementary
#5720A6 #A69A20 #2CA620
monochromatic
#210C3F #3C1673 #5720A6 #722DD6 #9560E0

Accessibility & contrast

On white

9.71
#5720A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5720A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5720A6
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5720A6#FFFFFF#000000##FFFFFF
##5720A61.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#3F4764
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5720a6;
/* rgb */ color: rgb(87, 32, 166);
/* oklch */ color: oklch(41.1% 0.194 294.7);
Tailwind
colors: {
  custom: {
    50: '#8f63c2',
    500: '#5720a6',
    950: '#000000',
  },
}
SCSS
$custom: #5720a6;
$custom-light: #8f63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5720a6",
  "rgb": {
    "r": 87,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 264.627,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41135,
    "c": 0.19447,
    "h": 294.7
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#5720A6
secondary
#9AC55D
accent
#EB3DA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5720A6

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

Preview Lab → · Contrast checker → · Palette generator →

#5720A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva