#522DA1#522DA1

#522DA1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.175 H 291.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#522DA1
RGBrgb(82, 45, 161)
HSLhsl(259, 56%, 40%)
HSVhsv(259, 72%, 63%)
CMYKcmyk(49.1%, 72%, 0%, 36.9%)
CIE-LABlab(30.02, 44.19, -56.80)
CIE-LCHlch(30.02, 71.97, 307.88°)
OKLaboklab(41.62% 0.0642 -0.1629)
OKLCHoklch(41.62% 0.175 291.5)
XYZxyz(10.8493, 6.2434, 34.3448)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA1 #7CA12D
analogous
#2D42A1 #522DA1 #8C2DA1
triadic
#522DA1 #A1522D #2DA152
tetradic
#522DA1 #A12D42 #7CA12D #2DA18C
square
#522DA1 #A12D42 #7CA12D #2DA18C
split-complementary
#522DA1 #A18C2D #42A12D
monochromatic
#211241 #3A2071 #522DA1 #6D41CA #9271D7

Accessibility & contrast

On white

9.34
#522DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#522DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DA1
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA1#FFFFFF#000000##FFFFFF
##522DA11.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#384B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522da1;
/* rgb */ color: rgb(82, 45, 161);
/* oklch */ color: oklch(41.6% 0.175 291.5);
Tailwind
colors: {
  custom: {
    50: '#8a69be',
    500: '#522da1',
    950: '#000000',
  },
}
SCSS
$custom: #522da1;
$custom-light: #8a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#522da1",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 259.138,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.17512,
    "h": 291.5
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#522DA1
secondary
#A4BF6B
accent
#E048AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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