#522BAB#522BAB

#522BAB is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.189 H 289.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#522BAB
RGBrgb(82, 43, 171)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(52%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.55, 48.03, -61.96)
CIE-LCHlch(30.55, 78.40, 307.78°)
OKLaboklab(42.27% 0.0637 -0.1781)
OKLCHoklch(42.27% 0.189 289.7)
XYZxyz(11.6921, 6.4613, 39.1513)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BAB #84AB2B
analogous
#2B44AB #522BAB #922BAB
triadic
#522BAB #AB522B #2BAB52
tetradic
#522BAB #AB2B44 #84AB2B #2BAB92
square
#522BAB #AB2B44 #84AB2B #2BAB92
split-complementary
#522BAB #AB922B #44AB2B
monochromatic
#231249 #3B1F7A #522BAB #6E43D0 #9474DC

Accessibility & contrast

On white

9.16
#522BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#522BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BAB
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BAB#FFFFFF#000000##FFFFFF
##522BAB1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#314E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522bab;
/* rgb */ color: rgb(82, 43, 171);
/* oklch */ color: oklch(42.3% 0.189 289.7);
Tailwind
colors: {
  custom: {
    50: '#8c69c5',
    500: '#522bab',
    950: '#000000',
  },
}
SCSS
$custom: #522bab;
$custom-light: #8c69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#522bab",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 258.281,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.18909,
    "h": 289.7
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#522BAB
secondary
#AAC46E
accent
#E345B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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