#522D9C#522D9C

#522D9C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.169 H 292.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#522D9C
RGBrgb(82, 45, 156)
HSLhsl(260, 55%, 39%)
HSVhsv(260, 71%, 61%)
CMYKcmyk(47.4%, 71.2%, 0%, 38.8%)
CIE-LABlab(29.59, 42.77, -54.46)
CIE-LCHlch(29.59, 69.25, 308.14°)
OKLaboklab(41.19% 0.0652 -0.156)
OKLCHoklch(41.19% 0.169 292.7)
XYZxyz(10.4171, 6.0706, 32.0689)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D9C #779C2D
analogous
#2D409C #522D9C #8A2D9C
triadic
#522D9C #9C522D #2D9C52
tetradic
#522D9C #9C2D40 #779C2D #2D9C8A
square
#522D9C #9C2D40 #779C2D #2D9C8A
split-complementary
#522D9C #9C8A2D #409C2D
monochromatic
#20123D #391F6D #522D9C #6C3FC8 #916ED5

Accessibility & contrast

On white

9.48
#522D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522D9C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D9C#FFFFFF#000000##FFFFFF
##522D9C1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#3C4961
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522d9c;
/* rgb */ color: rgb(82, 45, 156);
/* oklch */ color: oklch(41.2% 0.169 292.7);
Tailwind
colors: {
  custom: {
    50: '#8a69ba',
    500: '#522d9c',
    950: '#000000',
  },
}
SCSS
$custom: #522d9c;
$custom-light: #8a69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#522d9c",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 260,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.16913,
    "h": 292.7
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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