#5220A0#5220A0

#5220A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.188 H 293.7°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5220A0
RGBrgb(82, 32, 160)
HSLhsl(263, 67%, 38%)
HSVhsv(263, 80%, 63%)
CMYKcmyk(48.8%, 80%, 0%, 37.3%)
CIE-LABlab(27.75, 50.11, -59.91)
CIE-LCHlch(27.75, 78.11, 309.91°)
OKLaboklab(40% 0.0755 -0.1719)
OKLCHoklch(40% 0.188 293.7)
XYZxyz(10.3396, 5.3646, 33.7416)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A0 #6EA020
analogous
#202EA0 #5220A0 #9220A0
triadic
#5220A0 #A05220 #20A052
tetradic
#5220A0 #A0202E #6EA020 #20A092
square
#5220A0 #A0202E #6EA020 #20A092
split-complementary
#5220A0 #A09220 #2EA020
monochromatic
#1E0C3A #38166D #5220A0 #6C2AD3 #8F5CDE

Accessibility & contrast

On white

10.13
#5220A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5220A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A0
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A0#FFFFFF#000000##FFFFFF
##5220A01.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#3A4560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5220a0;
/* rgb */ color: rgb(82, 32, 160);
/* oklch */ color: oklch(40.0% 0.188 293.7);
Tailwind
colors: {
  custom: {
    50: '#8b62bd',
    500: '#5220a0',
    950: '#000000',
  },
}
SCSS
$custom: #5220a0;
$custom-light: #8b62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a0",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 263.438,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.18777,
    "h": 293.7
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#5220A0
secondary
#99C359
accent
#EA3EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5220A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5220A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva