#522DA8#522DA8

#522DA8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.183 H 290.0°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#522DA8
RGBrgb(82, 45, 168)
HSLhsl(258, 58%, 42%)
HSVhsv(258, 73%, 66%)
CMYKcmyk(51.2%, 73.2%, 0%, 34.1%)
CIE-LABlab(30.63, 46.18, -60.02)
CIE-LCHlch(30.63, 75.73, 307.57°)
OKLaboklab(42.25% 0.0627 -0.1724)
OKLCHoklch(42.25% 0.183 290)
XYZxyz(11.4839, 6.4973, 37.6872)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA8 #83A82D
analogous
#2D46A8 #522DA8 #902DA8
triadic
#522DA8 #A8522D #2DA852
tetradic
#522DA8 #A82D46 #83A82D #2DA890
square
#522DA8 #A82D46 #83A82D #2DA890
split-complementary
#522DA8 #A8902D #46A82D
monochromatic
#231347 #3A2078 #522DA8 #6E45CD #9475DA

Accessibility & contrast

On white

9.13
#522DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#522DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DA8
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA8#FFFFFF#000000##FFFFFF
##522DA81.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#344E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522da8;
/* rgb */ color: rgb(82, 45, 168);
/* oklch */ color: oklch(42.3% 0.183 290.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ac3',
    500: '#522da8',
    950: '#000000',
  },
}
SCSS
$custom: #522da8;
$custom-light: #8b6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#522da8",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 258.049,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4225,
    "c": 0.18341,
    "h": 290
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

primary
#522DA8
secondary
#A9C26F
accent
#E147B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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