#522D85#522D85

#522D85 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.141 H 299.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#522D85
RGBrgb(82, 45, 133)
HSLhsl(265, 49%, 35%)
HSVhsv(265, 66%, 52%)
CMYKcmyk(38.3%, 66.2%, 0%, 47.8%)
CIE-LABlab(27.75, 36.34, -43.28)
CIE-LCHlch(27.75, 56.51, 310.02°)
OKLaboklab(39.29% 0.0686 -0.1232)
OKLCHoklch(39.29% 0.141 299.1)
XYZxyz(8.6506, 5.3640, 22.7653)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D85 #60852D
analogous
#2D3485 #522D85 #7E2D85
triadic
#522D85 #85522D #2D8552
tetradic
#522D85 #852D34 #60852D #2D857E
square
#522D85 #852D34 #60852D #2D857E
split-complementary
#522D85 #857E2D #34852D
monochromatic
#1A0E2A #361E57 #522D85 #6E3CB3 #8E62CA

Accessibility & contrast

On white

10.13
#522D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D85
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D85#FFFFFF#000000##FFFFFF
##522D851.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#004183
Tritanopia (blue-blind)
#464155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522d85;
/* rgb */ color: rgb(82, 45, 133);
/* oklch */ color: oklch(39.3% 0.141 299.1);
Tailwind
colors: {
  custom: {
    50: '#8768a9',
    500: '#522d85',
    950: '#000000',
  },
}
SCSS
$custom: #522d85;
$custom-light: #8768a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522d85",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 265.227,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39288,
    "c": 0.14098,
    "h": 299.1
  },
  "luminance": 0.05364
}

Semantic roles & 50–950 ramp

primary
#522D85
secondary
#8EB05D
accent
#D94F9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D85

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

Preview Lab → · Contrast checker → · Palette generator →

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