#522D7D#522D7D

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

Color values

HEX#522D7D
RGBrgb(82, 45, 125)
HSLhsl(268, 47%, 33%)
HSVhsv(268, 64%, 49%)
CMYKcmyk(34.4%, 64%, 0%, 51%)
CIE-LABlab(27.16, 34.16, -39.21)
CIE-LCHlch(27.16, 52.00, 311.07°)
OKLaboklab(38.68% 0.0692 -0.1112)
OKLCHoklch(38.68% 0.131 301.9)
XYZxyz(8.1189, 5.1513, 19.9646)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7D #587D2D
analogous
#2D307D #522D7D #7A2D7D
triadic
#522D7D #7D522D #2D7D52
tetradic
#522D7D #7D2D30 #587D2D #2D7D7A
square
#522D7D #7D2D30 #587D2D #2D7D7A
split-complementary
#522D7D #7D7A2D #307D2D
monochromatic
#170D23 #341D50 #522D7D #703DAA #8E5FC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522D7D#FFFFFF#000000##FFFFFF
##522D7D1.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)
#004080
Deuteranopia (green-blind)
#14407B
Tritanopia (blue-blind)
#493E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7d;
/* rgb */ color: rgb(82, 45, 125);
/* oklch */ color: oklch(38.7% 0.131 301.9);
Tailwind
colors: {
  custom: {
    50: '#8668a3',
    500: '#522d7d',
    950: '#000000',
  },
}
SCSS
$custom: #522d7d;
$custom-light: #8668a3;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7d",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 267.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.13096,
    "h": 301.9
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#522D7D
secondary
#86AC5A
accent
#D75199
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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