#522A8E#522A8E

#522A8E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.156 H 297.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#522A8E
RGBrgb(82, 42, 142)
HSLhsl(264, 54%, 36%)
HSVhsv(264, 70%, 56%)
CMYKcmyk(42.3%, 70.4%, 0%, 44.3%)
CIE-LABlab(27.85, 40.46, -48.70)
CIE-LCHlch(27.85, 63.32, 309.72°)
OKLaboklab(39.59% 0.0708 -0.1391)
OKLCHoklch(39.59% 0.156 297)
XYZxyz(9.1889, 5.4026, 26.1446)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A8E #668E2A
analogous
#2A348E #522A8E #842A8E
triadic
#522A8E #8E522A #2A8E52
tetradic
#522A8E #8E2A34 #668E2A #2A8E84
square
#522A8E #8E2A34 #668E2A #2A8E84
split-complementary
#522A8E #8E842A #348E2A
monochromatic
#1B0E30 #371C5F #522A8E #6D38BD #8E62D1

Accessibility & contrast

On white

10.09
#522A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A8E
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A8E#FFFFFF#000000##FFFFFF
##522A8E1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522a8e;
/* rgb */ color: rgb(82, 42, 142);
/* oklch */ color: oklch(39.6% 0.156 297.0);
Tailwind
colors: {
  custom: {
    50: '#8867b0',
    500: '#522a8e',
    950: '#000000',
  },
}
SCSS
$custom: #522a8e;
$custom-light: #8867b0;
$custom-dark: #000000;
JSON
{
  "hex": "#522a8e",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 264,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39585,
    "c": 0.1561,
    "h": 297
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#522A8E
secondary
#93B65D
accent
#DE4AA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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