#522C80#522C80

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

Color values

HEX#522C80
RGBrgb(82, 44, 128)
HSLhsl(267, 49%, 34%)
HSVhsv(267, 66%, 50%)
CMYKcmyk(35.9%, 65.6%, 0%, 49.8%)
CIE-LABlab(27.17, 35.54, -41.08)
CIE-LCHlch(27.17, 54.32, 310.86°)
OKLaboklab(38.75% 0.0703 -0.1167)
OKLCHoklch(38.75% 0.136 301)
XYZxyz(8.2757, 5.1537, 20.9767)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C80 #5A802C
analogous
#2C3080 #522C80 #7C2C80
triadic
#522C80 #80522C #2C8052
tetradic
#522C80 #802C30 #5A802C #2C807C
square
#522C80 #802C30 #5A802C #2C807C
split-complementary
#522C80 #807C2C #30802C
monochromatic
#180D25 #351C52 #522C80 #6F3CAE #8E5FC8

Accessibility & contrast

On white

10.34
#522C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522C80
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C80#FFFFFF#000000##FFFFFF
##522C801.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#0B407E
Tritanopia (blue-blind)
#483E52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522c80;
/* rgb */ color: rgb(82, 44, 128);
/* oklch */ color: oklch(38.8% 0.136 301.0);
Tailwind
colors: {
  custom: {
    50: '#8667a5',
    500: '#522c80',
    950: '#000000',
  },
}
SCSS
$custom: #522c80;
$custom-light: #8667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522c80",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 267.143,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38751,
    "c": 0.13622,
    "h": 301
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#522C80
secondary
#88AE5A
accent
#D84F9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522C80

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

Preview Lab → · Contrast checker → · Palette generator →

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