#522C96#522C96

#522C96 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.163 H 294.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#522C96
RGBrgb(82, 44, 150)
HSLhsl(262, 55%, 38%)
HSVhsv(262, 71%, 59%)
CMYKcmyk(45.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(28.89, 41.62, -51.93)
CIE-LCHlch(28.89, 66.55, 308.71°)
OKLaboklab(40.53% 0.0673 -0.1486)
OKLCHoklch(40.53% 0.163 294.4)
XYZxyz(9.8839, 5.7969, 29.4464)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C96 #70962C
analogous
#2C3B96 #522C96 #872C96
triadic
#522C96 #96522C #2C9652
tetradic
#522C96 #962C3B #70962C #2C9687
square
#522C96 #962C3B #70962C #2C9687
split-complementary
#522C96 #96872C #3B962C
monochromatic
#1E1037 #381E67 #522C96 #6C3AC5 #8F69D3

Accessibility & contrast

On white

9.72
#522C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C96
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C96#FFFFFF#000000##FFFFFF
##522C961.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3F465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522c96;
/* rgb */ color: rgb(82, 44, 150);
/* oklch */ color: oklch(40.5% 0.163 294.4);
Tailwind
colors: {
  custom: {
    50: '#8968b6',
    500: '#522c96',
    950: '#000000',
  },
}
SCSS
$custom: #522c96;
$custom-light: #8968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522c96",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 261.509,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.16316,
    "h": 294.4
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#522C96
secondary
#9BBA64
accent
#DE4AA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C96

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

Preview Lab → · Contrast checker → · Palette generator →

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