#522B7A#522B7A

#522B7A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.130 H 303.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#522B7A
RGBrgb(82, 43, 122)
HSLhsl(270, 48%, 32%)
HSVhsv(270, 65%, 48%)
CMYKcmyk(32.8%, 64.8%, 0%, 52.2%)
CIE-LABlab(26.52, 34.50, -38.34)
CIE-LCHlch(26.52, 51.57, 311.98°)
OKLaboklab(38.15% 0.0719 -0.1086)
OKLCHoklch(38.15% 0.13 303.5)
XYZxyz(7.8556, 4.9267, 18.9457)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B7A #537A2B
analogous
#2B2C7A #522B7A #7A2B7A
triadic
#522B7A #7A522B #2B7A52
tetradic
#522B7A #7A2B2C #537A2B #2B7A7A
square
#522B7A #7A2B2C #537A2B #2B7A7A
split-complementary
#522B7A #7A7A2B #2C7A2B
monochromatic
#150B1F #341B4D #522B7A #703BA7 #8F5AC5

Accessibility & contrast

On white

10.58
#522B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B7A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B7A#FFFFFF#000000##FFFFFF
##522B7A1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#153F78
Tritanopia (blue-blind)
#4A3C4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b7a;
/* rgb */ color: rgb(82, 43, 122);
/* oklch */ color: oklch(38.1% 0.130 303.5);
Tailwind
colors: {
  custom: {
    50: '#8667a1',
    500: '#522b7a',
    950: '#000000',
  },
}
SCSS
$custom: #522b7a;
$custom-light: #8667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#522b7a",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 269.62,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.13029,
    "h": 303.5
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#522B7A
secondary
#81AB56
accent
#D75095
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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