#522A85#522A85

#522A85 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.145 H 299.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#522A85
RGBrgb(82, 42, 133)
HSLhsl(266, 52%, 34%)
HSVhsv(266, 68%, 52%)
CMYKcmyk(38.3%, 68.4%, 0%, 47.8%)
CIE-LABlab(27.14, 38.01, -44.26)
CIE-LCHlch(27.14, 58.34, 310.65°)
OKLaboklab(38.85% 0.0722 -0.1261)
OKLCHoklch(38.85% 0.145 299.8)
XYZxyz(8.5402, 5.1431, 22.7285)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A85 #5D852A
analogous
#2A2F85 #522A85 #802A85
triadic
#522A85 #85522A #2A8552
tetradic
#522A85 #852A2F #5D852A #2A8580
square
#522A85 #852A2F #5D852A #2A8580
split-complementary
#522A85 #85802A #2F852A
monochromatic
#190D28 #351B56 #522A85 #6F39B4 #8E5DCC

Accessibility & contrast

On white

10.35
#522A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A85
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A85#FFFFFF#000000##FFFFFF
##522A851.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#473F54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522a85;
/* rgb */ color: rgb(82, 42, 133);
/* oklch */ color: oklch(38.8% 0.145 299.8);
Tailwind
colors: {
  custom: {
    50: '#8766a9',
    500: '#522a85',
    950: '#000000',
  },
}
SCSS
$custom: #522a85;
$custom-light: #8766a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522a85",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 266.374,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38849,
    "c": 0.14525,
    "h": 299.8
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#522A85
secondary
#8BB259
accent
#DB4C9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A85

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

Preview Lab → · Contrast checker → · Palette generator →

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