#522D9A#522D9A

#522D9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 293.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#522D9A
RGBrgb(82, 45, 154)
HSLhsl(260, 55%, 39%)
HSVhsv(260, 71%, 60%)
CMYKcmyk(46.8%, 70.8%, 0%, 39.6%)
CIE-LABlab(29.42, 42.21, -53.52)
CIE-LCHlch(29.42, 68.16, 308.26°)
OKLaboklab(41.01% 0.0656 -0.1533)
OKLCHoklch(41.01% 0.167 293.2)
XYZxyz(10.2492, 6.0034, 31.1843)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D9A #759A2D
analogous
#2D3F9A #522D9A #892D9A
triadic
#522D9A #9A522D #2D9A52
tetradic
#522D9A #9A2D3F #759A2D #2D9A89
square
#522D9A #9A2D3F #759A2D #2D9A89
split-complementary
#522D9A #9A892D #3F9A2D
monochromatic
#20113B #391F6B #522D9A #6C3EC7 #906DD4

Accessibility & contrast

On white

9.54
#522D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D9A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D9A#FFFFFF#000000##FFFFFF
##522D9A1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#3D4860
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522d9a;
/* rgb */ color: rgb(82, 45, 154);
/* oklch */ color: oklch(41.0% 0.167 293.2);
Tailwind
colors: {
  custom: {
    50: '#8969b9',
    500: '#522d9a',
    950: '#000000',
  },
}
SCSS
$custom: #522d9a;
$custom-light: #8969b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522d9a",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 260.367,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41014,
    "c": 0.16673,
    "h": 293.2
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#522D9A
secondary
#9FBB67
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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