#522D8F#522D8F

#522D8F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.153 H 296.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#522D8F
RGBrgb(82, 45, 143)
HSLhsl(263, 52%, 37%)
HSVhsv(263, 69%, 56%)
CMYKcmyk(42.7%, 68.5%, 0%, 43.9%)
CIE-LABlab(28.52, 39.12, -48.23)
CIE-LCHlch(28.52, 62.10, 309.04°)
OKLaboklab(40.09% 0.0674 -0.1377)
OKLCHoklch(40.09% 0.153 296.1)
XYZxyz(9.3747, 5.6536, 26.5786)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D8F #6A8F2D
analogous
#2D398F #522D8F #832D8F
triadic
#522D8F #8F522D #2D8F52
tetradic
#522D8F #8F2D39 #6A8F2D #2D8F83
square
#522D8F #8F2D39 #6A8F2D #2D8F83
split-complementary
#522D8F #8F832D #398F2D
monochromatic
#1D1032 #371E60 #522D8F #6D3CBE #8E67CF

Accessibility & contrast

On white

9.86
#522D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D8F
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D8F#FFFFFF#000000##FFFFFF
##522D8F1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#42445A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522d8f;
/* rgb */ color: rgb(82, 45, 143);
/* oklch */ color: oklch(40.1% 0.153 296.1);
Tailwind
colors: {
  custom: {
    50: '#8869b1',
    500: '#522d8f',
    950: '#000000',
  },
}
SCSS
$custom: #522d8f;
$custom-light: #8869b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522d8f",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 262.653,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40089,
    "c": 0.15335,
    "h": 296.1
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#522D8F
secondary
#96B662
accent
#DC4CA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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