#522D7C#522D7C

#522D7C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.130 H 302.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#522D7C
RGBrgb(82, 45, 124)
HSLhsl(268, 47%, 33%)
HSVhsv(268, 64%, 49%)
CMYKcmyk(33.9%, 63.7%, 0%, 51.4%)
CIE-LABlab(27.09, 33.89, -38.69)
CIE-LCHlch(27.09, 51.44, 311.22°)
OKLaboklab(38.6% 0.0692 -0.1097)
OKLCHoklch(38.6% 0.13 302.3)
XYZxyz(8.0553, 5.1258, 19.6299)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7C #577C2D
analogous
#2D2F7C #522D7C #792D7C
triadic
#522D7C #7C522D #2D7C52
tetradic
#522D7C #7C2D2F #577C2D #2D7C79
square
#522D7C #7C2D2F #577C2D #2D7C79
split-complementary
#522D7C #7C792D #2F7C2D
monochromatic
#170C22 #341D4F #522D7C #703DA9 #8E5FC5

Accessibility & contrast

On white

10.37
#522D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522D7C
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D7C#FFFFFF#000000##FFFFFF
##522D7C1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#15407A
Tritanopia (blue-blind)
#4A3E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7c;
/* rgb */ color: rgb(82, 45, 124);
/* oklch */ color: oklch(38.6% 0.130 302.3);
Tailwind
colors: {
  custom: {
    50: '#8668a2',
    500: '#522d7c',
    950: '#000000',
  },
}
SCSS
$custom: #522d7c;
$custom-light: #8668a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7c",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 268.101,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.12971,
    "h": 302.3
  },
  "luminance": 0.05126
}

Semantic roles & 50–950 ramp

primary
#522D7C
secondary
#85AB5A
accent
#D65198
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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