#522DA2#522DA2

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

Color values

HEX#522DA2
RGBrgb(82, 45, 162)
HSLhsl(259, 57%, 41%)
HSVhsv(259, 72%, 64%)
CMYKcmyk(49.4%, 72.2%, 0%, 36.5%)
CIE-LABlab(30.11, 44.47, -57.27)
CIE-LCHlch(30.11, 72.51, 307.83°)
OKLaboklab(41.71% 0.064 -0.1643)
OKLCHoklch(41.71% 0.176 291.3)
XYZxyz(10.9378, 6.2788, 34.8110)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA2 #7DA22D
analogous
#2D43A2 #522DA2 #8C2DA2
triadic
#522DA2 #A2522D #2DA252
tetradic
#522DA2 #A22D43 #7DA22D #2DA28C
square
#522DA2 #A22D43 #7DA22D #2DA28C
split-complementary
#522DA2 #A28C2D #43A22D
monochromatic
#221242 #3A2072 #522DA2 #6D42CA #9272D8

Accessibility & contrast

On white

9.31
#522DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522DA2
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA2#FFFFFF#000000##FFFFFF
##522DA21.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#384B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522da2;
/* rgb */ color: rgb(82, 45, 162);
/* oklch */ color: oklch(41.7% 0.176 291.3);
Tailwind
colors: {
  custom: {
    50: '#8a69be',
    500: '#522da2',
    950: '#000000',
  },
}
SCSS
$custom: #522da2;
$custom-light: #8a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#522da2",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 258.974,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.17631,
    "h": 291.3
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#522DA2
secondary
#A5BF6C
accent
#E048B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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