#5820A8#5820A8

#5820A8 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.197 H 294.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5820A8
RGBrgb(88, 32, 168)
HSLhsl(265, 68%, 39%)
HSVhsv(265, 81%, 66%)
CMYKcmyk(47.6%, 81%, 0%, 34.1%)
CIE-LABlab(29.25, 53.04, -62.27)
CIE-LCHlch(29.25, 81.79, 310.42°)
OKLaboklab(41.44% 0.0822 -0.1786)
OKLCHoklch(41.44% 0.197 294.7)
XYZxyz(11.6070, 5.9345, 37.5721)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5820A8 #70A820
analogous
#202CA8 #5820A8 #9C20A8
triadic
#5820A8 #A85820 #20A858
tetradic
#5820A8 #A8202C #70A820 #20A89C
square
#5820A8 #A8202C #70A820 #20A89C
split-complementary
#5820A8 #A89C20 #2CA820
monochromatic
#220C41 #3D1675 #5820A8 #742ED7 #9661E1

Accessibility & contrast

On white

9.60
#5820A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5820A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5820A8
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5820A8#FFFFFF#000000##FFFFFF
##5820A81.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#404765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5820a8;
/* rgb */ color: rgb(88, 32, 168);
/* oklch */ color: oklch(41.4% 0.197 294.7);
Tailwind
colors: {
  custom: {
    50: '#9063c3',
    500: '#5820a8',
    950: '#000000',
  },
}
SCSS
$custom: #5820a8;
$custom-light: #9063c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5820a8",
  "rgb": {
    "r": 88,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 264.706,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.19665,
    "h": 294.7
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5820A8
secondary
#9BC65E
accent
#EB3DA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5820A8

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

Preview Lab → · Contrast checker → · Palette generator →

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