#522EA1#522EA1

#522EA1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.174 H 291.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#522EA1
RGBrgb(82, 46, 161)
HSLhsl(259, 56%, 41%)
HSVhsv(259, 71%, 63%)
CMYKcmyk(49.1%, 71.4%, 0%, 36.9%)
CIE-LABlab(30.21, 43.66, -56.49)
CIE-LCHlch(30.21, 71.40, 307.70°)
OKLaboklab(41.76% 0.0633 -0.162)
OKLCHoklch(41.76% 0.174 291.3)
XYZxyz(10.8879, 6.3206, 34.3576)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA1 #7DA12E
analogous
#2E43A1 #522EA1 #8C2EA1
triadic
#522EA1 #A1522E #2EA152
tetradic
#522EA1 #A12E43 #7DA12E #2EA18C
square
#522EA1 #A12E43 #7DA12E #2EA18C
split-complementary
#522EA1 #A18C2E #43A12E
monochromatic
#221342 #3A2071 #522EA1 #6D43C9 #9273D7

Accessibility & contrast

On white

9.27
#522EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA1
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA1#FFFFFF#000000##FFFFFF
##522EA11.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#384C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ea1;
/* rgb */ color: rgb(82, 46, 161);
/* oklch */ color: oklch(41.8% 0.174 291.3);
Tailwind
colors: {
  custom: {
    50: '#8a6abe',
    500: '#522ea1',
    950: '#000000',
  },
}
SCSS
$custom: #522ea1;
$custom-light: #8a6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea1",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 258.783,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41759,
    "c": 0.17393,
    "h": 291.3
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#522EA1
secondary
#A5BE6C
accent
#DF49B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #522EA1

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

Preview Lab → · Contrast checker → · Palette generator →

#522EA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva