#522D83#522D83

#522D83 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.138 H 299.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#522D83
RGBrgb(82, 45, 131)
HSLhsl(266, 49%, 35%)
HSVhsv(266, 66%, 51%)
CMYKcmyk(37.4%, 65.6%, 0%, 48.6%)
CIE-LABlab(27.60, 35.79, -42.27)
CIE-LCHlch(27.60, 55.39, 310.26°)
OKLaboklab(39.13% 0.0688 -0.1202)
OKLCHoklch(39.13% 0.138 299.8)
XYZxyz(8.5138, 5.3092, 22.0446)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D83 #5E832D
analogous
#2D3383 #522D83 #7D2D83
triadic
#522D83 #83522D #2D8352
tetradic
#522D83 #832D33 #5E832D #2D837D
square
#522D83 #832D33 #5E832D #2D837D
split-complementary
#522D83 #837D2D #33832D
monochromatic
#190E28 #351D55 #522D83 #6F3DB1 #8E62C9

Accessibility & contrast

On white

10.19
#522D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D83
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D83#FFFFFF#000000##FFFFFF
##522D831.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#064081
Tritanopia (blue-blind)
#474053
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522d83;
/* rgb */ color: rgb(82, 45, 131);
/* oklch */ color: oklch(39.1% 0.138 299.8);
Tailwind
colors: {
  custom: {
    50: '#8768a8',
    500: '#522d83',
    950: '#000000',
  },
}
SCSS
$custom: #522d83;
$custom-light: #8768a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522d83",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 265.814,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39133,
    "c": 0.13848,
    "h": 299.8
  },
  "luminance": 0.05309
}

Semantic roles & 50–950 ramp

primary
#522D83
secondary
#8CAF5C
accent
#D84F9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D83

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

Preview Lab → · Contrast checker → · Palette generator →

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