#522A94#522A94

#522A94 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.163 H 295.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#522A94
RGBrgb(82, 42, 148)
HSLhsl(263, 56%, 37%)
HSVhsv(263, 72%, 58%)
CMYKcmyk(44.6%, 71.6%, 0%, 42%)
CIE-LABlab(28.35, 42.12, -51.60)
CIE-LCHlch(28.35, 66.60, 309.22°)
OKLaboklab(40.09% 0.0698 -0.1476)
OKLCHoklch(40.09% 0.163 295.3)
XYZxyz(9.6515, 5.5876, 28.5812)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A94 #6C942A
analogous
#2A3794 #522A94 #872A94
triadic
#522A94 #94522A #2A9452
tetradic
#522A94 #942A37 #6C942A #2A9487
square
#522A94 #942A37 #6C942A #2A9487
split-complementary
#522A94 #94872A #37942A
monochromatic
#1D0F35 #381C64 #522A94 #6C38C4 #8F65D3

Accessibility & contrast

On white

9.92
#522A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A94
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A94#FFFFFF#000000##FFFFFF
##522A941.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#40445C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522a94;
/* rgb */ color: rgb(82, 42, 148);
/* oklch */ color: oklch(40.1% 0.163 295.3);
Tailwind
colors: {
  custom: {
    50: '#8967b4',
    500: '#522a94',
    950: '#000000',
  },
}
SCSS
$custom: #522a94;
$custom-light: #8967b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522a94",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 262.642,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40092,
    "c": 0.16326,
    "h": 295.3
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#522A94
secondary
#98B960
accent
#DF49A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A94

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

Preview Lab → · Contrast checker → · Palette generator →

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