#522D9B#522D9B

#522D9B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.168 H 292.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#522D9B
RGBrgb(82, 45, 155)
HSLhsl(260, 55%, 39%)
HSVhsv(260, 71%, 61%)
CMYKcmyk(47.1%, 71%, 0%, 39.2%)
CIE-LABlab(29.51, 42.49, -53.99)
CIE-LCHlch(29.51, 68.71, 308.20°)
OKLaboklab(41.1% 0.0654 -0.1547)
OKLCHoklch(41.1% 0.168 292.9)
XYZxyz(10.3328, 6.0368, 31.6248)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D9B #769B2D
analogous
#2D3F9B #522D9B #892D9B
triadic
#522D9B #9B522D #2D9B52
tetradic
#522D9B #9B2D3F #769B2D #2D9B89
square
#522D9B #9B2D3F #769B2D #2D9B89
split-complementary
#522D9B #9B892D #3F9B2D
monochromatic
#20113C #391F6C #522D9B #6C3EC7 #906ED5

Accessibility & contrast

On white

9.51
#522D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D9B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D9B#FFFFFF#000000##FFFFFF
##522D9B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#3C4960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522d9b;
/* rgb */ color: rgb(82, 45, 155);
/* oklch */ color: oklch(41.1% 0.168 292.9);
Tailwind
colors: {
  custom: {
    50: '#8969b9',
    500: '#522d9b',
    950: '#000000',
  },
}
SCSS
$custom: #522d9b;
$custom-light: #8969b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522d9b",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 260.182,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.411,
    "c": 0.16793,
    "h": 292.9
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

primary
#522D9B
secondary
#A0BC68
accent
#DE49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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