#5820A6#5820A6

#5820A6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.195 H 295.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5820A6
RGBrgb(88, 32, 166)
HSLhsl(265, 68%, 39%)
HSVhsv(265, 81%, 65%)
CMYKcmyk(47%, 80.7%, 0%, 34.9%)
CIE-LABlab(29.06, 52.52, -61.37)
CIE-LCHlch(29.06, 80.78, 310.56°)
OKLaboklab(41.25% 0.0829 -0.176)
OKLCHoklch(41.25% 0.195 295.2)
XYZxyz(11.4221, 5.8606, 36.5984)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5820A6 #6EA620
analogous
#202BA6 #5820A6 #9B20A6
triadic
#5820A6 #A65820 #20A658
tetradic
#5820A6 #A6202B #6EA620 #20A69B
square
#5820A6 #A6202B #6EA620 #20A69B
split-complementary
#5820A6 #A69B20 #2BA620
monochromatic
#220C3F #3D1673 #5820A6 #742DD6 #9660E0

Accessibility & contrast

On white

9.67
#5820A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5820A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5820A6
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5820A6#FFFFFF#000000##FFFFFF
##5820A61.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5820a6;
/* rgb */ color: rgb(88, 32, 166);
/* oklch */ color: oklch(41.2% 0.195 295.2);
Tailwind
colors: {
  custom: {
    50: '#8f63c2',
    500: '#5820a6',
    950: '#000000',
  },
}
SCSS
$custom: #5820a6;
$custom-light: #8f63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5820a6",
  "rgb": {
    "r": 88,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 265.075,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41249,
    "c": 0.19455,
    "h": 295.2
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#5820A6
secondary
#99C55D
accent
#EB3DA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5820A6

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

Preview Lab → · Contrast checker → · Palette generator →

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