#522A8D#522A8D

#522A8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.155 H 297.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#522A8D
RGBrgb(82, 42, 141)
HSLhsl(264, 54%, 36%)
HSVhsv(264, 70%, 55%)
CMYKcmyk(41.8%, 70.2%, 0%, 44.7%)
CIE-LABlab(27.77, 40.19, -48.21)
CIE-LCHlch(27.77, 62.77, 309.81°)
OKLaboklab(39.5% 0.071 -0.1377)
OKLCHoklch(39.5% 0.155 297.3)
XYZxyz(9.1141, 5.3727, 25.7510)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A8D #658D2A
analogous
#2A348D #522A8D #832A8D
triadic
#522A8D #8D522A #2A8D52
tetradic
#522A8D #8D2A34 #658D2A #2A8D83
square
#522A8D #8D2A34 #658D2A #2A8D83
split-complementary
#522A8D #8D832A #348D2A
monochromatic
#1B0E2F #371C5E #522A8D #6D38BC #8E61D0

Accessibility & contrast

On white

10.12
#522A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A8D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A8D#FFFFFF#000000##FFFFFF
##522A8D1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#434258
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522a8d;
/* rgb */ color: rgb(82, 42, 141);
/* oklch */ color: oklch(39.5% 0.155 297.3);
Tailwind
colors: {
  custom: {
    50: '#8867af',
    500: '#522a8d',
    950: '#000000',
  },
}
SCSS
$custom: #522a8d;
$custom-light: #8867af;
$custom-dark: #000000;
JSON
{
  "hex": "#522a8d",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 264.242,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39501,
    "c": 0.1549,
    "h": 297.3
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#522A8D
secondary
#92B65D
accent
#DD4AA2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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