#522DB6#522DB6

#522DB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.200 H 287.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#522DB6
RGBrgb(82, 45, 182)
HSLhsl(256, 60%, 45%)
HSVhsv(256, 75%, 71%)
CMYKcmyk(54.9%, 75.3%, 0%, 28.6%)
CIE-LABlab(31.91, 50.15, -66.29)
CIE-LCHlch(31.91, 83.12, 307.11°)
OKLaboklab(43.55% 0.0593 -0.1907)
OKLCHoklch(43.55% 0.2 287.3)
XYZxyz(12.8590, 7.0473, 44.9296)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DB6 #91B62D
analogous
#2D4DB6 #522DB6 #962DB6
triadic
#522DB6 #B6522D #2DB652
tetradic
#522DB6 #B62D4D #91B62D #2DB696
square
#522DB6 #B62D4D #91B62D #2DB696
split-complementary
#522DB6 #B6962D #4DB62D
monochromatic
#261554 #3C2185 #522DB6 #714DD3 #987EDF

Accessibility & contrast

On white

8.72
#522DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#522DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DB6
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DB6#FFFFFF#000000##FFFFFF
##522DB61.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#275370
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522db6;
/* rgb */ color: rgb(82, 45, 182);
/* oklch */ color: oklch(43.5% 0.200 287.3);
Tailwind
colors: {
  custom: {
    50: '#8d6acd',
    500: '#522db6',
    950: '#000000',
  },
}
SCSS
$custom: #522db6;
$custom-light: #8d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#522db6",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 256.204,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.19972,
    "h": 287.3
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#522DB6
secondary
#B2C877
accent
#E344B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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