#522A7B#522A7B

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

Color values

HEX#522A7B
RGBrgb(82, 42, 123)
HSLhsl(270, 49%, 32%)
HSVhsv(270, 66%, 48%)
CMYKcmyk(33.3%, 65.9%, 0%, 51.8%)
CIE-LABlab(26.39, 35.33, -39.19)
CIE-LCHlch(26.39, 52.76, 312.03°)
OKLaboklab(38.07% 0.0732 -0.1111)
OKLCHoklch(38.07% 0.133 303.4)
XYZxyz(7.8820, 4.8798, 19.2617)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A7B #537B2A
analogous
#2A2A7B #522A7B #7B2A7B
triadic
#522A7B #7B522A #2A7B52
tetradic
#522A7B #7B2A2A #537B2A #2A7B7B
square
#522A7B #7B2A2A #537B2A #2A7B7B
split-complementary
#522A7B #7B7B2A #2A7B2A
monochromatic
#150B20 #341A4D #522A7B #703AA9 #8F59C6

Accessibility & contrast

On white

10.63
#522A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A7B
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A7B#FFFFFF#000000##FFFFFF
##522A7B1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#4A3B4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522a7b;
/* rgb */ color: rgb(82, 42, 123);
/* oklch */ color: oklch(38.1% 0.133 303.4);
Tailwind
colors: {
  custom: {
    50: '#8666a2',
    500: '#522a7b',
    950: '#000000',
  },
}
SCSS
$custom: #522a7b;
$custom-light: #8666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522a7b",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 269.63,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38072,
    "c": 0.13305,
    "h": 303.4
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#522A7B
secondary
#81AC55
accent
#D94F95
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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