#522C97#522C97

#522C97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.164 H 294.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#522C97
RGBrgb(82, 44, 151)
HSLhsl(261, 55%, 38%)
HSVhsv(261, 71%, 59%)
CMYKcmyk(45.7%, 70.9%, 0%, 40.8%)
CIE-LABlab(28.98, 41.90, -52.41)
CIE-LCHlch(28.98, 67.10, 308.64°)
OKLaboklab(40.62% 0.0672 -0.15)
OKLCHoklch(40.62% 0.164 294.1)
XYZxyz(9.9648, 5.8293, 29.8723)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C97 #71972C
analogous
#2C3C97 #522C97 #872C97
triadic
#522C97 #97522C #2C9752
tetradic
#522C97 #972C3C #71972C #2C9787
square
#522C97 #972C3C #71972C #2C9787
split-complementary
#522C97 #97872C #3C972C
monochromatic
#1F1038 #381E68 #522C97 #6C3AC6 #8F6AD4

Accessibility & contrast

On white

9.70
#522C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#522C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C97
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C97#FFFFFF#000000##FFFFFF
##522C971.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3E475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522c97;
/* rgb */ color: rgb(82, 44, 151);
/* oklch */ color: oklch(40.6% 0.164 294.1);
Tailwind
colors: {
  custom: {
    50: '#8968b6',
    500: '#522c97',
    950: '#000000',
  },
}
SCSS
$custom: #522c97;
$custom-light: #8968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522c97",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 261.308,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4062,
    "c": 0.16436,
    "h": 294.1
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522C97

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

Preview Lab → · Contrast checker → · Palette generator →

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