#522DA6#522DA6

#522DA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.181 H 290.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#522DA6
RGBrgb(82, 45, 166)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(50.6%, 72.9%, 0%, 34.9%)
CIE-LABlab(30.46, 45.61, -59.11)
CIE-LCHlch(30.46, 74.66, 307.65°)
OKLaboklab(42.07% 0.0632 -0.1697)
OKLCHoklch(42.07% 0.181 290.4)
XYZxyz(11.2990, 6.4233, 36.7135)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA6 #81A62D
analogous
#2D45A6 #522DA6 #8F2DA6
triadic
#522DA6 #A6522D #2DA652
tetradic
#522DA6 #A62D45 #81A62D #2DA68F
square
#522DA6 #A62D45 #81A62D #2DA68F
split-complementary
#522DA6 #A68F2D #45A62D
monochromatic
#221346 #3A2076 #522DA6 #6E44CC #9374D9

Accessibility & contrast

On white

9.19
#522DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DA6
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA6#FFFFFF#000000##FFFFFF
##522DA61.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#354D67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522da6;
/* rgb */ color: rgb(82, 45, 166);
/* oklch */ color: oklch(42.1% 0.181 290.4);
Tailwind
colors: {
  custom: {
    50: '#8b69c1',
    500: '#522da6',
    950: '#000000',
  },
}
SCSS
$custom: #522da6;
$custom-light: #8b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522da6",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 166
  },
  "hsl": {
    "h": 258.347,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.18105,
    "h": 290.4
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#522DA6
secondary
#A8C16E
accent
#E147B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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