#522BAA#522BAA

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

Color values

HEX#522BAA
RGBrgb(82, 43, 170)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(51.8%, 74.7%, 0%, 33.3%)
CIE-LABlab(30.46, 47.75, -61.51)
CIE-LCHlch(30.46, 77.87, 307.82°)
OKLaboklab(42.18% 0.0639 -0.1767)
OKLCHoklch(42.18% 0.188 289.9)
XYZxyz(11.5972, 6.4234, 38.6512)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BAA #83AA2B
analogous
#2B44AA #522BAA #922BAA
triadic
#522BAA #AA522B #2BAA52
tetradic
#522BAA #AA2B44 #83AA2B #2BAA92
square
#522BAA #AA2B44 #83AA2B #2BAA92
split-complementary
#522BAA #AA922B #44AA2B
monochromatic
#231248 #3A1F79 #522BAA #6E43CF #9474DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522BAA#FFFFFF#000000##FFFFFF
##522BAA1.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)
#004AAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#324E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522baa;
/* rgb */ color: rgb(82, 43, 170);
/* oklch */ color: oklch(42.2% 0.188 289.9);
Tailwind
colors: {
  custom: {
    50: '#8c68c4',
    500: '#522baa',
    950: '#000000',
  },
}
SCSS
$custom: #522baa;
$custom-light: #8c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#522baa",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 258.425,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4218,
    "c": 0.18793,
    "h": 289.9
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#522BAA
secondary
#A9C36E
accent
#E345B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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