#5222A0#5222A0

#5222A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.186 H 293.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5222A0
RGBrgb(82, 34, 160)
HSLhsl(263, 65%, 38%)
HSVhsv(263, 79%, 63%)
CMYKcmyk(48.8%, 78.8%, 0%, 37.3%)
CIE-LABlab(28.05, 49.25, -59.42)
CIE-LCHlch(28.05, 77.17, 309.65°)
OKLaboklab(40.21% 0.0739 -0.1705)
OKLCHoklch(40.21% 0.186 293.4)
XYZxyz(10.3951, 5.4756, 33.7601)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222A0 #70A022
analogous
#2231A0 #5222A0 #9122A0
triadic
#5222A0 #A05222 #22A052
tetradic
#5222A0 #A02231 #70A022 #22A091
square
#5222A0 #A02231 #70A022 #22A091
split-complementary
#5222A0 #A09122 #31A022
monochromatic
#1E0D3B #38176E #5222A0 #6C2DD2 #8F5FDD

Accessibility & contrast

On white

10.02
#5222A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5222A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222A0
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222A0#FFFFFF#000000##FFFFFF
##5222A01.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#3A4561
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5222a0;
/* rgb */ color: rgb(82, 34, 160);
/* oklch */ color: oklch(40.2% 0.186 293.4);
Tailwind
colors: {
  custom: {
    50: '#8b63bd',
    500: '#5222a0',
    950: '#000000',
  },
}
SCSS
$custom: #5222a0;
$custom-light: #8b63bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5222a0",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 262.857,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4021,
    "c": 0.18586,
    "h": 293.4
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#5222A0
secondary
#9BC25C
accent
#E840A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5222A0

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

Preview Lab → · Contrast checker → · Palette generator →

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