#522C81#522C81

#522C81 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.137 H 300.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#522C81
RGBrgb(82, 44, 129)
HSLhsl(267, 49%, 34%)
HSVhsv(267, 66%, 51%)
CMYKcmyk(36.4%, 65.9%, 0%, 49.4%)
CIE-LABlab(27.24, 35.81, -41.59)
CIE-LCHlch(27.24, 54.89, 310.73°)
OKLaboklab(38.83% 0.0702 -0.1182)
OKLCHoklch(38.83% 0.137 300.7)
XYZxyz(8.3418, 5.1801, 21.3250)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C81 #5B812C
analogous
#2C3081 #522C81 #7D2C81
triadic
#522C81 #81522C #2C8152
tetradic
#522C81 #812C30 #5B812C #2C817D
square
#522C81 #812C30 #5B812C #2C817D
split-complementary
#522C81 #817D2C #30812C
monochromatic
#180D26 #351C53 #522C81 #6F3CAF #8E5FC8

Accessibility & contrast

On white

10.31
#522C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C81
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C81#FFFFFF#000000##FFFFFF
##522C811.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#09407F
Tritanopia (blue-blind)
#483F52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522c81;
/* rgb */ color: rgb(82, 44, 129);
/* oklch */ color: oklch(38.8% 0.137 300.7);
Tailwind
colors: {
  custom: {
    50: '#8667a6',
    500: '#522c81',
    950: '#000000',
  },
}
SCSS
$custom: #522c81;
$custom-light: #8667a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522c81",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 266.824,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38828,
    "c": 0.13747,
    "h": 300.7
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#522C81
secondary
#89AF5A
accent
#D94F9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522C81

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

Preview Lab → · Contrast checker → · Palette generator →

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