#522498#522498

#522498 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.175 H 295.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#522498
RGBrgb(82, 36, 152)
HSLhsl(264, 62%, 37%)
HSVhsv(264, 76%, 60%)
CMYKcmyk(46.1%, 76.3%, 0%, 40.4%)
CIE-LABlab(27.63, 46.19, -55.22)
CIE-LCHlch(27.63, 71.99, 309.92°)
OKLaboklab(39.7% 0.0745 -0.1582)
OKLCHoklch(39.7% 0.175 295.2)
XYZxyz(9.7765, 5.3223, 30.2119)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522498 #6A9824
analogous
#243098 #522498 #8C2498
triadic
#522498 #985224 #249852
tetradic
#522498 #982430 #6A9824 #24988C
square
#522498 #982430 #6A9824 #24988C
split-complementary
#522498 #988C24 #309824
monochromatic
#1D0D35 #371867 #522498 #6D30C9 #8E5ED9

Accessibility & contrast

On white

10.17
#522498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522498
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522498#FFFFFF#000000##FFFFFF
##5224981.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#3E435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522498;
/* rgb */ color: rgb(82, 36, 152);
/* oklch */ color: oklch(39.7% 0.175 295.2);
Tailwind
colors: {
  custom: {
    50: '#8a64b7',
    500: '#522498',
    950: '#000000',
  },
}
SCSS
$custom: #522498;
$custom-light: #8a64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522498",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 263.793,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39695,
    "c": 0.17489,
    "h": 295.2
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#522498
secondary
#96BE5A
accent
#E543A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522498

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

Preview Lab → · Contrast checker → · Palette generator →

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