#522D9F#522D9F

#522D9F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.173 H 292.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#522D9F
RGBrgb(82, 45, 159)
HSLhsl(259, 56%, 40%)
HSVhsv(259, 72%, 62%)
CMYKcmyk(48.4%, 71.7%, 0%, 37.6%)
CIE-LABlab(29.85, 43.62, -55.87)
CIE-LCHlch(29.85, 70.88, 307.98°)
OKLaboklab(41.45% 0.0646 -0.1602)
OKLCHoklch(41.45% 0.173 292)
XYZxyz(10.6743, 6.1734, 33.4233)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D9F #7A9F2D
analogous
#2D419F #522D9F #8B2D9F
triadic
#522D9F #9F522D #2D9F52
tetradic
#522D9F #9F2D41 #7A9F2D #2D9F8B
square
#522D9F #9F2D41 #7A9F2D #2D9F8B
split-complementary
#522D9F #9F8B2D #419F2D
monochromatic
#211240 #39206F #522D9F #6D40C9 #9170D6

Accessibility & contrast

On white

9.40
#522D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#522D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D9F
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D9F#FFFFFF#000000##FFFFFF
##522D9F1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#3A4A63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522d9f;
/* rgb */ color: rgb(82, 45, 159);
/* oklch */ color: oklch(41.4% 0.173 292.0);
Tailwind
colors: {
  custom: {
    50: '#8a69bc',
    500: '#522d9f',
    950: '#000000',
  },
}
SCSS
$custom: #522d9f;
$custom-light: #8a69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#522d9f",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 259.474,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41448,
    "c": 0.17273,
    "h": 292
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#522D9F
secondary
#A3BE6A
accent
#DF49AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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