#522DB3#522DB3

#522DB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.196 H 287.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#522DB3
RGBrgb(82, 45, 179)
HSLhsl(257, 60%, 44%)
HSVhsv(257, 75%, 70%)
CMYKcmyk(54.2%, 74.9%, 0%, 29.8%)
CIE-LABlab(31.63, 49.30, -64.96)
CIE-LCHlch(31.63, 81.55, 307.20°)
OKLaboklab(43.26% 0.0601 -0.1868)
OKLCHoklch(43.26% 0.196 287.8)
XYZxyz(12.5523, 6.9246, 43.3143)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DB3 #8EB32D
analogous
#2D4BB3 #522DB3 #952DB3
triadic
#522DB3 #B3522D #2DB352
tetradic
#522DB3 #B32D4B #8EB32D #2DB395
square
#522DB3 #B32D4B #8EB32D #2DB395
split-complementary
#522DB3 #B3952D #4BB32D
monochromatic
#251451 #3C2182 #522DB3 #704BD2 #977CDE

Accessibility & contrast

On white

8.81
#522DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522DB3
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DB3#FFFFFF#000000##FFFFFF
##522DB31.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522db3;
/* rgb */ color: rgb(82, 45, 179);
/* oklch */ color: oklch(43.3% 0.196 287.8);
Tailwind
colors: {
  custom: {
    50: '#8d6acb',
    500: '#522db3',
    950: '#000000',
  },
}
SCSS
$custom: #522db3;
$custom-light: #8d6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#522db3",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 256.567,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43263,
    "c": 0.19625,
    "h": 287.8
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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