#522494#522494

#522494 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.170 H 296.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#522494
RGBrgb(82, 36, 148)
HSLhsl(265, 61%, 36%)
HSVhsv(265, 76%, 58%)
CMYKcmyk(44.6%, 75.7%, 0%, 42%)
CIE-LABlab(27.28, 45.12, -53.34)
CIE-LCHlch(27.28, 69.86, 310.23°)
OKLaboklab(39.34% 0.0756 -0.1527)
OKLCHoklch(39.34% 0.17 296.3)
XYZxyz(9.4544, 5.1935, 28.5156)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522494 #669424
analogous
#242E94 #522494 #8A2494
triadic
#522494 #945224 #249452
tetradic
#522494 #94242E #669424 #24948A
square
#522494 #94242E #669424 #24948A
split-complementary
#522494 #948A24 #2E9424
monochromatic
#1B0C32 #371863 #522494 #6D30C5 #8E5BD7

Accessibility & contrast

On white

10.30
#522494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522494
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522494#FFFFFF#000000##FFFFFF
##5224941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#40415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522494;
/* rgb */ color: rgb(82, 36, 148);
/* oklch */ color: oklch(39.3% 0.170 296.3);
Tailwind
colors: {
  custom: {
    50: '#8964b4',
    500: '#522494',
    950: '#000000',
  },
}
SCSS
$custom: #522494;
$custom-light: #8964b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522494",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 264.643,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39336,
    "c": 0.17037,
    "h": 296.3
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#522494
secondary
#93BC58
accent
#E444A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522494

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

Preview Lab → · Contrast checker → · Palette generator →

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