#522A86#522A86

#522A86 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.146 H 299.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#522A86
RGBrgb(82, 42, 134)
HSLhsl(266, 52%, 35%)
HSVhsv(266, 69%, 53%)
CMYKcmyk(38.8%, 68.7%, 0%, 47.5%)
CIE-LABlab(27.22, 38.28, -44.76)
CIE-LCHlch(27.22, 58.90, 310.53°)
OKLaboklab(38.93% 0.072 -0.1275)
OKLCHoklch(38.93% 0.146 299.5)
XYZxyz(8.6096, 5.1709, 23.0941)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A86 #5E862A
analogous
#2A3086 #522A86 #802A86
triadic
#522A86 #86522A #2A8652
tetradic
#522A86 #862A30 #5E862A #2A8680
square
#522A86 #862A30 #5E862A #2A8680
split-complementary
#522A86 #86802A #30862A
monochromatic
#190D29 #351B57 #522A86 #6F39B5 #8E5ECD

Accessibility & contrast

On white

10.32
#522A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A86
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A86#FFFFFF#000000##FFFFFF
##522A861.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#463F54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522a86;
/* rgb */ color: rgb(82, 42, 134);
/* oklch */ color: oklch(38.9% 0.146 299.5);
Tailwind
colors: {
  custom: {
    50: '#8766aa',
    500: '#522a86',
    950: '#000000',
  },
}
SCSS
$custom: #522a86;
$custom-light: #8766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522a86",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 266.087,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.14646,
    "h": 299.5
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#522A86
secondary
#8CB25A
accent
#DC4C9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A86

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

Preview Lab → · Contrast checker → · Palette generator →

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