#522BA3#522BA3

#522BA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.180 H 291.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#522BA3
RGBrgb(82, 43, 163)
HSLhsl(260, 58%, 40%)
HSVhsv(260, 74%, 64%)
CMYKcmyk(49.7%, 73.6%, 0%, 36.1%)
CIE-LABlab(29.83, 45.78, -58.33)
CIE-LCHlch(29.83, 74.15, 308.13°)
OKLaboklab(41.54% 0.0656 -0.1674)
OKLCHoklch(41.54% 0.18 291.4)
XYZxyz(10.9525, 6.1655, 35.2562)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA3 #7CA32B
analogous
#2B40A3 #522BA3 #8E2BA3
triadic
#522BA3 #A3522B #2BA352
tetradic
#522BA3 #A32B40 #7CA32B #2BA38E
square
#522BA3 #A32B40 #7CA32B #2BA38E
split-complementary
#522BA3 #A38E2B #40A32B
monochromatic
#211142 #3A1E73 #522BA3 #6D3FCC #926FD9

Accessibility & contrast

On white

9.40
#522BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522BA3
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA3#FFFFFF#000000##FFFFFF
##522BA31.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#374B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ba3;
/* rgb */ color: rgb(82, 43, 163);
/* oklch */ color: oklch(41.5% 0.180 291.4);
Tailwind
colors: {
  custom: {
    50: '#8b68bf',
    500: '#522ba3',
    950: '#000000',
  },
}
SCSS
$custom: #522ba3;
$custom-light: #8b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba3",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 259.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.17978,
    "h": 291.4
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#522BA3
secondary
#A4C06A
accent
#E146AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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