#522DB4#522DB4

#522DB4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.197 H 287.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#522DB4
RGBrgb(82, 45, 180)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 71%)
CMYKcmyk(54.4%, 75%, 0%, 29.4%)
CIE-LABlab(31.73, 49.59, -65.41)
CIE-LCHlch(31.73, 82.08, 307.17°)
OKLaboklab(43.36% 0.0598 -0.1881)
OKLCHoklch(43.36% 0.197 287.6)
XYZxyz(12.6538, 6.9652, 43.8488)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DB4 #8FB42D
analogous
#2D4CB4 #522DB4 #962DB4
triadic
#522DB4 #B4522D #2DB452
tetradic
#522DB4 #B42D4C #8FB42D #2DB496
square
#522DB4 #B42D4C #8FB42D #2DB496
split-complementary
#522DB4 #B4962D #4CB42D
monochromatic
#251552 #3C2183 #522DB4 #714CD2 #987DDE

Accessibility & contrast

On white

8.77
#522DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#522DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DB4
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DB4#FFFFFF#000000##FFFFFF
##522DB41.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#29526E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522db4;
/* rgb */ color: rgb(82, 45, 180);
/* oklch */ color: oklch(43.4% 0.197 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d6acc',
    500: '#522db4',
    950: '#000000',
  },
}
SCSS
$custom: #522db4;
$custom-light: #8d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#522db4",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 256.444,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43357,
    "c": 0.19741,
    "h": 287.6
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#522DB4
secondary
#B1C776
accent
#E345B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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