#5221A0#5221A0

#5221A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.187 H 293.6°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5221A0
RGBrgb(82, 33, 160)
HSLhsl(263, 66%, 38%)
HSVhsv(263, 79%, 63%)
CMYKcmyk(48.8%, 79.4%, 0%, 37.3%)
CIE-LABlab(27.90, 49.68, -59.67)
CIE-LCHlch(27.90, 77.64, 309.78°)
OKLaboklab(40.11% 0.0747 -0.1712)
OKLCHoklch(40.11% 0.187 293.6)
XYZxyz(10.3669, 5.4193, 33.7507)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A0 #6FA021
analogous
#212FA0 #5221A0 #9221A0
triadic
#5221A0 #A05221 #21A052
tetradic
#5221A0 #A0212F #6FA021 #21A092
square
#5221A0 #A0212F #6FA021 #21A092
split-complementary
#5221A0 #A09221 #2FA021
monochromatic
#1E0C3B #38176D #5221A0 #6C2BD3 #8F5EDE

Accessibility & contrast

On white

10.08
#5221A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5221A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A0
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A0#FFFFFF#000000##FFFFFF
##5221A01.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#3A4560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5221a0;
/* rgb */ color: rgb(82, 33, 160);
/* oklch */ color: oklch(40.1% 0.187 293.6);
Tailwind
colors: {
  custom: {
    50: '#8b63bd',
    500: '#5221a0',
    950: '#000000',
  },
}
SCSS
$custom: #5221a0;
$custom-light: #8b63bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a0",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 263.15,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.18682,
    "h": 293.6
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#5221A0
secondary
#9AC25B
accent
#E93FA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5221A0

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

Preview Lab → · Contrast checker → · Palette generator →

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