#522D89#522D89

#522D89 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.146 H 297.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#522D89
RGBrgb(82, 45, 137)
HSLhsl(264, 51%, 36%)
HSVhsv(264, 67%, 54%)
CMYKcmyk(40.1%, 67.2%, 0%, 46.3%)
CIE-LABlab(28.05, 37.45, -45.28)
CIE-LCHlch(28.05, 58.76, 309.59°)
OKLaboklab(39.6% 0.0682 -0.129)
OKLCHoklch(39.6% 0.146 297.8)
XYZxyz(8.9323, 5.4766, 24.2486)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D89 #64892D
analogous
#2D3689 #522D89 #802D89
triadic
#522D89 #89522D #2D8952
tetradic
#522D89 #892D36 #64892D #2D8980
square
#522D89 #892D36 #64892D #2D8980
split-complementary
#522D89 #89802D #36892D
monochromatic
#1B0F2D #361E5B #522D89 #6E3CB7 #8E64CC

Accessibility & contrast

On white

10.02
#522D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D89
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D89#FFFFFF#000000##FFFFFF
##522D891.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#454257
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522d89;
/* rgb */ color: rgb(82, 45, 137);
/* oklch */ color: oklch(39.6% 0.146 297.8);
Tailwind
colors: {
  custom: {
    50: '#8768ac',
    500: '#522d89',
    950: '#000000',
  },
}
SCSS
$custom: #522d89;
$custom-light: #8768ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522d89",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 264.13,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39603,
    "c": 0.14595,
    "h": 297.8
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#522D89
secondary
#91B35F
accent
#DA4EA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D89

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

Preview Lab → · Contrast checker → · Palette generator →

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