#522DB2#522DB2

#522DB2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.195 H 288.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#522DB2
RGBrgb(82, 45, 178)
HSLhsl(257, 60%, 44%)
HSVhsv(257, 75%, 70%)
CMYKcmyk(53.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(31.54, 49.02, -64.52)
CIE-LCHlch(31.54, 81.03, 307.23°)
OKLaboklab(43.17% 0.0603 -0.1855)
OKLCHoklch(43.17% 0.195 288)
XYZxyz(12.4516, 6.8843, 42.7836)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DB2 #8DB22D
analogous
#2D4AB2 #522DB2 #942DB2
triadic
#522DB2 #B2522D #2DB252
tetradic
#522DB2 #B22D4A #8DB22D #2DB294
square
#522DB2 #B22D4A #8DB22D #2DB294
split-complementary
#522DB2 #B2942D #4AB22D
monochromatic
#251450 #3B2181 #522DB2 #704BD1 #977CDE

Accessibility & contrast

On white

8.83
#522DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#522DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DB2
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DB2#FFFFFF#000000##FFFFFF
##522DB21.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2B526D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522db2;
/* rgb */ color: rgb(82, 45, 178);
/* oklch */ color: oklch(43.2% 0.195 288.0);
Tailwind
colors: {
  custom: {
    50: '#8d6aca',
    500: '#522db2',
    950: '#000000',
  },
}
SCSS
$custom: #522db2;
$custom-light: #8d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#522db2",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 256.692,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4317,
    "c": 0.19509,
    "h": 288
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#522DB2
secondary
#AFC675
accent
#E345B7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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