#522DB8#522DB8

#522DB8 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.202 H 286.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#522DB8
RGBrgb(82, 45, 184)
HSLhsl(256, 61%, 45%)
HSVhsv(256, 76%, 72%)
CMYKcmyk(55.4%, 75.5%, 0%, 27.8%)
CIE-LABlab(32.10, 50.72, -67.16)
CIE-LCHlch(32.10, 84.16, 307.06°)
OKLaboklab(43.73% 0.0588 -0.1933)
OKLCHoklch(43.73% 0.202 286.9)
XYZxyz(13.0672, 7.1306, 46.0259)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DB8 #93B82D
analogous
#2D4EB8 #522DB8 #972DB8
triadic
#522DB8 #B8522D #2DB852
tetradic
#522DB8 #B82D4E #93B82D #2DB897
square
#522DB8 #B82D4E #93B82D #2DB897
split-complementary
#522DB8 #B8972D #4EB82D
monochromatic
#261556 #3C2187 #522DB8 #724ED4 #9980E0

Accessibility & contrast

On white

8.66
#522DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#522DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DB8
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DB8#FFFFFF#000000##FFFFFF
##522DB81.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#255471
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522db8;
/* rgb */ color: rgb(82, 45, 184);
/* oklch */ color: oklch(43.7% 0.202 286.9);
Tailwind
colors: {
  custom: {
    50: '#8e6ace',
    500: '#522db8',
    950: '#000000',
  },
}
SCSS
$custom: #522db8;
$custom-light: #8e6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#522db8",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 255.971,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43734,
    "c": 0.20202,
    "h": 286.9
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#522DB8
secondary
#B3C978
accent
#E444B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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