#5720A5#5720A5

#5720A5 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.193 H 295.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5720A5
RGBrgb(87, 32, 165)
HSLhsl(265, 68%, 39%)
HSVhsv(265, 81%, 65%)
CMYKcmyk(47.3%, 80.6%, 0%, 35.3%)
CIE-LABlab(28.84, 52.13, -61.13)
CIE-LCHlch(28.84, 80.34, 310.45°)
OKLaboklab(41.04% 0.0816 -0.1753)
OKLCHoklch(41.04% 0.193 295)
XYZxyz(11.2367, 5.7756, 36.1128)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5720A5 #6EA520
analogous
#202BA5 #5720A5 #9920A5
triadic
#5720A5 #A55720 #20A557
tetradic
#5720A5 #A5202B #6EA520 #20A599
square
#5720A5 #A5202B #6EA520 #20A599
split-complementary
#5720A5 #A59920 #2BA520
monochromatic
#210C3E #3C1672 #5720A5 #722CD6 #955FE0

Accessibility & contrast

On white

9.74
#5720A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5720A5
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5720A5#FFFFFF#000000##FFFFFF
##5720A51.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#404663
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5720a5;
/* rgb */ color: rgb(87, 32, 165);
/* oklch */ color: oklch(41.0% 0.193 295.0);
Tailwind
colors: {
  custom: {
    50: '#8f63c1',
    500: '#5720a5',
    950: '#000000',
  },
}
SCSS
$custom: #5720a5;
$custom-light: #8f63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5720a5",
  "rgb": {
    "r": 87,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 264.812,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41041,
    "c": 0.19342,
    "h": 295
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#5720A5
secondary
#99C55C
accent
#EA3DA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5720A5

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

Preview Lab → · Contrast checker → · Palette generator →

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