#522A8A#522A8A

#522A8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.151 H 298.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#522A8A
RGBrgb(82, 42, 138)
HSLhsl(265, 53%, 35%)
HSVhsv(265, 70%, 54%)
CMYKcmyk(40.6%, 69.6%, 0%, 45.9%)
CIE-LABlab(27.53, 39.37, -46.74)
CIE-LCHlch(27.53, 61.11, 310.10°)
OKLaboklab(39.25% 0.0715 -0.1333)
OKLCHoklch(39.25% 0.151 298.2)
XYZxyz(8.8939, 5.2846, 24.5913)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A8A #628A2A
analogous
#2A328A #522A8A #822A8A
triadic
#522A8A #8A522A #2A8A52
tetradic
#522A8A #8A2A32 #628A2A #2A8A82
square
#522A8A #8A2A32 #628A2A #2A8A82
split-complementary
#522A8A #8A822A #328A2A
monochromatic
#1A0D2C #361C5B #522A8A #6E38B9 #8E60CF

Accessibility & contrast

On white

10.21
#522A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A8A
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A8A#FFFFFF#000000##FFFFFF
##522A8A1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#454156
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522a8a;
/* rgb */ color: rgb(82, 42, 138);
/* oklch */ color: oklch(39.3% 0.151 298.2);
Tailwind
colors: {
  custom: {
    50: '#8867ad',
    500: '#522a8a',
    950: '#000000',
  },
}
SCSS
$custom: #522a8a;
$custom-light: #8867ad;
$custom-dark: #000000;
JSON
{
  "hex": "#522a8a",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 265,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.15129,
    "h": 298.2
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#522A8A
secondary
#8FB45B
accent
#DD4BA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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