#522B8A#522B8A

#522B8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.150 H 298.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#522B8A
RGBrgb(82, 43, 138)
HSLhsl(265, 52%, 35%)
HSVhsv(265, 69%, 54%)
CMYKcmyk(40.6%, 68.8%, 0%, 45.9%)
CIE-LABlab(27.73, 38.82, -46.43)
CIE-LCHlch(27.73, 60.52, 309.90°)
OKLaboklab(39.4% 0.0703 -0.1324)
OKLCHoklch(39.4% 0.15 298)
XYZxyz(8.9298, 5.3564, 24.6032)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B8A #638A2B
analogous
#2B338A #522B8A #812B8A
triadic
#522B8A #8A522B #2B8A52
tetradic
#522B8A #8A2B33 #638A2B #2B8A81
square
#522B8A #8A2B33 #638A2B #2B8A81
split-complementary
#522B8A #8A812B #338A2B
monochromatic
#1B0E2D #361C5B #522B8A #6E3AB9 #8E61CE

Accessibility & contrast

On white

10.14
#522B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B8A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B8A#FFFFFF#000000##FFFFFF
##522B8A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#444157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522b8a;
/* rgb */ color: rgb(82, 43, 138);
/* oklch */ color: oklch(39.4% 0.150 298.0);
Tailwind
colors: {
  custom: {
    50: '#8767ad',
    500: '#522b8a',
    950: '#000000',
  },
}
SCSS
$custom: #522b8a;
$custom-light: #8767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#522b8a",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 264.632,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39395,
    "c": 0.14994,
    "h": 298
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#522B8A
secondary
#90B45D
accent
#DC4CA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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