#522D86#522D86

#522D86 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.142 H 298.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#522D86
RGBrgb(82, 45, 134)
HSLhsl(265, 50%, 35%)
HSVhsv(265, 66%, 53%)
CMYKcmyk(38.8%, 66.4%, 0%, 47.5%)
CIE-LABlab(27.82, 36.62, -43.78)
CIE-LCHlch(27.82, 57.08, 309.91°)
OKLaboklab(39.37% 0.0685 -0.1246)
OKLCHoklch(39.37% 0.142 298.8)
XYZxyz(8.7201, 5.3917, 23.1309)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D86 #61862D
analogous
#2D3486 #522D86 #7F2D86
triadic
#522D86 #86522D #2D8652
tetradic
#522D86 #862D34 #61862D #2D867F
square
#522D86 #862D34 #61862D #2D867F
split-complementary
#522D86 #867F2D #34862D
monochromatic
#1A0E2A #361E58 #522D86 #6E3CB4 #8E63CB

Accessibility & contrast

On white

10.10
#522D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D86
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D86#FFFFFF#000000##FFFFFF
##522D861.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#464155
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522d86;
/* rgb */ color: rgb(82, 45, 134);
/* oklch */ color: oklch(39.4% 0.142 298.8);
Tailwind
colors: {
  custom: {
    50: '#8768aa',
    500: '#522d86',
    950: '#000000',
  },
}
SCSS
$custom: #522d86;
$custom-light: #8768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522d86",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 264.944,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.14223,
    "h": 298.8
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#522D86
secondary
#8EB15E
accent
#D94FA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D86

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

Preview Lab → · Contrast checker → · Palette generator →

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