#5220A1#5220A1

#5220A1 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.189 H 293.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5220A1
RGBrgb(82, 32, 161)
HSLhsl(263, 67%, 38%)
HSVhsv(263, 80%, 63%)
CMYKcmyk(49.1%, 80.1%, 0%, 36.9%)
CIE-LABlab(27.84, 50.37, -60.36)
CIE-LCHlch(27.84, 78.62, 309.85°)
OKLaboklab(40.1% 0.0751 -0.1733)
OKLCHoklch(40.1% 0.189 293.4)
XYZxyz(10.4274, 5.3997, 34.2041)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A1 #6FA120
analogous
#202EA1 #5220A1 #9220A1
triadic
#5220A1 #A15220 #20A152
tetradic
#5220A1 #A1202E #6FA120 #20A192
square
#5220A1 #A1202E #6FA120 #20A192
split-complementary
#5220A1 #A19220 #2EA120
monochromatic
#1E0C3B #38166E #5220A1 #6C2AD4 #8F5DDF

Accessibility & contrast

On white

10.10
#5220A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5220A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A1
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A1#FFFFFF#000000##FFFFFF
##5220A11.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#394561
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5220a1;
/* rgb */ color: rgb(82, 32, 161);
/* oklch */ color: oklch(40.1% 0.189 293.4);
Tailwind
colors: {
  custom: {
    50: '#8b62be',
    500: '#5220a1',
    950: '#000000',
  },
}
SCSS
$custom: #5220a1;
$custom-light: #8b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a1",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 263.256,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.18886,
    "h": 293.4
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#5220A1
secondary
#9AC35A
accent
#EA3EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5220A1

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

Preview Lab → · Contrast checker → · Palette generator →

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