#5820A7#5820A7

#5820A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.196 H 295.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5820A7
RGBrgb(88, 32, 167)
HSLhsl(265, 68%, 39%)
HSVhsv(265, 81%, 65%)
CMYKcmyk(47.3%, 80.8%, 0%, 34.5%)
CIE-LABlab(29.15, 52.78, -61.82)
CIE-LCHlch(29.15, 81.29, 310.49°)
OKLaboklab(41.34% 0.0825 -0.1773)
OKLCHoklch(41.34% 0.196 295)
XYZxyz(11.5142, 5.8974, 37.0834)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5820A7 #6FA720
analogous
#202CA7 #5820A7 #9C20A7
triadic
#5820A7 #A75820 #20A758
tetradic
#5820A7 #A7202C #6FA720 #20A79C
square
#5820A7 #A7202C #6FA720 #20A79C
split-complementary
#5820A7 #A79C20 #2CA720
monochromatic
#220C40 #3D1674 #5820A7 #742DD7 #9661E1

Accessibility & contrast

On white

9.63
#5820A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5820A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5820A7
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5820A7#FFFFFF#000000##FFFFFF
##5820A71.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#414764
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5820a7;
/* rgb */ color: rgb(88, 32, 167);
/* oklch */ color: oklch(41.3% 0.196 295.0);
Tailwind
colors: {
  custom: {
    50: '#9063c2',
    500: '#5820a7',
    950: '#000000',
  },
}
SCSS
$custom: #5820a7;
$custom-light: #9063c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5820a7",
  "rgb": {
    "r": 88,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 264.889,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.1956,
    "h": 295
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#5820A7
secondary
#9AC55D
accent
#EB3DA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5820A7

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

Preview Lab → · Contrast checker → · Palette generator →

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