#522D7A#522D7A

#522D7A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.127 H 303.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#522D7A
RGBrgb(82, 45, 122)
HSLhsl(269, 46%, 33%)
HSVhsv(269, 63%, 48%)
CMYKcmyk(32.8%, 63.1%, 0%, 52.2%)
CIE-LABlab(26.95, 33.35, -37.65)
CIE-LCHlch(26.95, 50.30, 311.54°)
OKLaboklab(38.46% 0.0693 -0.1066)
OKLCHoklch(38.46% 0.127 303)
XYZxyz(7.9301, 5.0758, 18.9705)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7A #557A2D
analogous
#2D2E7A #522D7A #782D7A
triadic
#522D7A #7A522D #2D7A52
tetradic
#522D7A #7A2D2E #557A2D #2D7A78
square
#522D7A #7A2D2E #557A2D #2D7A78
split-complementary
#522D7A #7A782D #2E7A2D
monochromatic
#160C21 #341D4D #522D7A #703DA7 #8F5EC4

Accessibility & contrast

On white

10.42
#522D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D7A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D7A#FFFFFF#000000##FFFFFF
##522D7A1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023F7C
Deuteranopia (green-blind)
#184078
Tritanopia (blue-blind)
#4A3D4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7a;
/* rgb */ color: rgb(82, 45, 122);
/* oklch */ color: oklch(38.5% 0.127 303.0);
Tailwind
colors: {
  custom: {
    50: '#8668a1',
    500: '#522d7a',
    950: '#000000',
  },
}
SCSS
$custom: #522d7a;
$custom-light: #8668a1;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7a",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 268.831,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.12718,
    "h": 303
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#522D7A
secondary
#83AA59
accent
#D65296
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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