#522DA5#522DA5

#522DA5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.180 H 290.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#522DA5
RGBrgb(82, 45, 165)
HSLhsl(259, 57%, 41%)
HSVhsv(259, 73%, 65%)
CMYKcmyk(50.3%, 72.7%, 0%, 35.3%)
CIE-LABlab(30.37, 45.32, -58.65)
CIE-LCHlch(30.37, 74.12, 307.70°)
OKLaboklab(41.98% 0.0634 -0.1683)
OKLCHoklch(41.98% 0.18 290.6)
XYZxyz(11.2077, 6.3868, 36.2323)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA5 #80A52D
analogous
#2D44A5 #522DA5 #8E2DA5
triadic
#522DA5 #A5522D #2DA552
tetradic
#522DA5 #A52D44 #80A52D #2DA58E
square
#522DA5 #A52D44 #80A52D #2DA58E
split-complementary
#522DA5 #A58E2D #44A52D
monochromatic
#221345 #3A2075 #522DA5 #6D43CC #9373D9

Accessibility & contrast

On white

9.22
#522DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522DA5
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA5#FFFFFF#000000##FFFFFF
##522DA51.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#364D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522da5;
/* rgb */ color: rgb(82, 45, 165);
/* oklch */ color: oklch(42.0% 0.180 290.6);
Tailwind
colors: {
  custom: {
    50: '#8b69c1',
    500: '#522da5',
    950: '#000000',
  },
}
SCSS
$custom: #522da5;
$custom-light: #8b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522da5",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 258.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.17987,
    "h": 290.6
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#522DA5
secondary
#A7C16D
accent
#E047B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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