#522BA2#522BA2

#522BA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.179 H 291.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#522BA2
RGBrgb(82, 43, 162)
HSLhsl(260, 58%, 40%)
HSVhsv(260, 73%, 64%)
CMYKcmyk(49.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.74, 45.50, -57.87)
CIE-LCHlch(29.74, 73.61, 308.18°)
OKLaboklab(41.45% 0.0658 -0.166)
OKLCHoklch(41.45% 0.179 291.6)
XYZxyz(10.8633, 6.1298, 34.7862)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA2 #7BA22B
analogous
#2B3FA2 #522BA2 #8E2BA2
triadic
#522BA2 #A2522B #2BA252
tetradic
#522BA2 #A22B3F #7BA22B #2BA28E
square
#522BA2 #A22B3F #7BA22B #2BA28E
split-complementary
#522BA2 #A28E2B #3FA22B
monochromatic
#211141 #3A1E72 #522BA2 #6D3ECC #916FD9

Accessibility & contrast

On white

9.43
#522BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#522BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA2#FFFFFF#000000##FFFFFF
##522BA21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#384A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ba2;
/* rgb */ color: rgb(82, 43, 162);
/* oklch */ color: oklch(41.5% 0.179 291.6);
Tailwind
colors: {
  custom: {
    50: '#8b68bf',
    500: '#522ba2',
    950: '#000000',
  },
}
SCSS
$custom: #522ba2;
$custom-light: #8b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba2",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 259.664,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41452,
    "c": 0.17861,
    "h": 291.6
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#522BA2
secondary
#A3C069
accent
#E147AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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