#522497#522497

#522497 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.174 H 295.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#522497
RGBrgb(82, 36, 151)
HSLhsl(264, 61%, 37%)
HSVhsv(264, 76%, 59%)
CMYKcmyk(45.7%, 76.2%, 0%, 40.8%)
CIE-LABlab(27.54, 45.93, -54.75)
CIE-LCHlch(27.54, 71.46, 309.99°)
OKLaboklab(39.61% 0.0748 -0.1568)
OKLCHoklch(39.61% 0.174 295.5)
XYZxyz(9.6950, 5.2897, 29.7824)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522497 #699724
analogous
#243097 #522497 #8C2497
triadic
#522497 #975224 #249752
tetradic
#522497 #972430 #699724 #24978C
square
#522497 #972430 #699724 #24978C
split-complementary
#522497 #978C24 #309724
monochromatic
#1C0C34 #371866 #522497 #6D30C8 #8E5DD8

Accessibility & contrast

On white

10.20
#522497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522497
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522497#FFFFFF#000000##FFFFFF
##5224971.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#3F435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522497;
/* rgb */ color: rgb(82, 36, 151);
/* oklch */ color: oklch(39.6% 0.174 295.5);
Tailwind
colors: {
  custom: {
    50: '#8a64b7',
    500: '#522497',
    950: '#000000',
  },
}
SCSS
$custom: #522497;
$custom-light: #8a64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522497",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 264,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.17376,
    "h": 295.5
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#522497
secondary
#95BD5A
accent
#E543A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522497

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

Preview Lab → · Contrast checker → · Palette generator →

#522497 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva