#522D90#522D90

#522D90 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.155 H 295.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#522D90
RGBrgb(82, 45, 144)
HSLhsl(262, 52%, 37%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(43.1%, 68.7%, 0%, 43.5%)
CIE-LABlab(28.60, 39.40, -48.72)
CIE-LCHlch(28.60, 62.66, 308.96°)
OKLaboklab(40.17% 0.0673 -0.1392)
OKLCHoklch(40.17% 0.155 295.8)
XYZxyz(9.4508, 5.6840, 26.9793)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D90 #6B902D
analogous
#2D3A90 #522D90 #842D90
triadic
#522D90 #90522D #2D9052
tetradic
#522D90 #902D3A #6B902D #2D9084
square
#522D90 #902D3A #6B902D #2D9084
split-complementary
#522D90 #90842D #3A902D
monochromatic
#1D1033 #371E61 #522D90 #6D3CBF #8F68D0

Accessibility & contrast

On white

9.83
#522D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D90
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D90#FFFFFF#000000##FFFFFF
##522D901.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#42455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522d90;
/* rgb */ color: rgb(82, 45, 144);
/* oklch */ color: oklch(40.2% 0.155 295.8);
Tailwind
colors: {
  custom: {
    50: '#8869b1',
    500: '#522d90',
    950: '#000000',
  },
}
SCSS
$custom: #522d90;
$custom-light: #8869b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522d90",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 262.424,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40171,
    "c": 0.15457,
    "h": 295.8
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#522D90
secondary
#97B662
accent
#DC4CA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D90

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

Preview Lab → · Contrast checker → · Palette generator →

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