#522C9B#522C9B

#522C9B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.169 H 293.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#522C9B
RGBrgb(82, 44, 155)
HSLhsl(261, 56%, 39%)
HSVhsv(261, 72%, 61%)
CMYKcmyk(47.1%, 71.6%, 0%, 39.2%)
CIE-LABlab(29.31, 43.02, -54.30)
CIE-LCHlch(29.31, 69.28, 308.39°)
OKLaboklab(40.97% 0.0664 -0.1556)
OKLCHoklch(40.97% 0.169 293.1)
XYZxyz(10.2951, 5.9614, 31.6122)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C9B #759B2C
analogous
#2C3D9B #522C9B #8A2C9B
triadic
#522C9B #9B522C #2C9B52
tetradic
#522C9B #9B2C3D #759B2C #2C9B8A
square
#522C9B #9B2C3D #759B2C #2C9B8A
split-complementary
#522C9B #9B8A2C #3D9B2C
monochromatic
#20113C #391E6B #522C9B #6C3CC8 #906CD5

Accessibility & contrast

On white

9.58
#522C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#522C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C9B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C9B#FFFFFF#000000##FFFFFF
##522C9B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522c9b;
/* rgb */ color: rgb(82, 44, 155);
/* oklch */ color: oklch(41.0% 0.169 293.1);
Tailwind
colors: {
  custom: {
    50: '#8a68b9',
    500: '#522c9b',
    950: '#000000',
  },
}
SCSS
$custom: #522c9b;
$custom-light: #8a68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522c9b",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 260.541,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40965,
    "c": 0.16915,
    "h": 293.1
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#522C9B
secondary
#9FBC67
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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