#522A93#522A93

#522A93 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.162 H 295.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#522A93
RGBrgb(82, 42, 147)
HSLhsl(263, 56%, 37%)
HSVhsv(263, 71%, 58%)
CMYKcmyk(44.2%, 71.4%, 0%, 42.4%)
CIE-LABlab(28.26, 41.84, -51.12)
CIE-LCHlch(28.26, 66.06, 309.30°)
OKLaboklab(40.01% 0.0699 -0.1462)
OKLCHoklch(40.01% 0.162 295.6)
XYZxyz(9.5727, 5.5561, 28.1662)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A93 #6B932A
analogous
#2A3793 #522A93 #872A93
triadic
#522A93 #93522A #2A9352
tetradic
#522A93 #932A37 #6B932A #2A9387
square
#522A93 #932A37 #6B932A #2A9387
split-complementary
#522A93 #93872A #37932A
monochromatic
#1D0F34 #371C63 #522A93 #6D38C3 #8F65D3

Accessibility & contrast

On white

9.95
#522A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A93
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A93#FFFFFF#000000##FFFFFF
##522A931.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004396
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#40445B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522a93;
/* rgb */ color: rgb(82, 42, 147);
/* oklch */ color: oklch(40.0% 0.162 295.6);
Tailwind
colors: {
  custom: {
    50: '#8967b4',
    500: '#522a93',
    950: '#000000',
  },
}
SCSS
$custom: #522a93;
$custom-light: #8967b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522a93",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 262.857,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.16208,
    "h": 295.6
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522A93

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

Preview Lab → · Contrast checker → · Palette generator →

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