#522D78#522D78

#522D78 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.125 H 303.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#522D78
RGBrgb(82, 45, 120)
HSLhsl(270, 45%, 32%)
HSVhsv(270, 63%, 47%)
CMYKcmyk(31.7%, 62.5%, 0%, 52.9%)
CIE-LABlab(26.81, 32.82, -36.61)
CIE-LCHlch(26.81, 49.17, 311.88°)
OKLaboklab(38.31% 0.0694 -0.1036)
OKLCHoklch(38.31% 0.125 303.8)
XYZxyz(7.8075, 5.0267, 18.3246)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D78 #53782D
analogous
#2D2D78 #522D78 #782D78
triadic
#522D78 #78522D #2D7852
tetradic
#522D78 #782D2D #53782D #2D7878
square
#522D78 #782D2D #53782D #2D7878
split-complementary
#522D78 #78782D #2D782D
monochromatic
#150C1F #341C4B #522D78 #703EA5 #8F5DC2

Accessibility & contrast

On white

10.47
#522D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D78
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D78#FFFFFF#000000##FFFFFF
##522D781.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073E7A
Deuteranopia (green-blind)
#1B3F76
Tritanopia (blue-blind)
#4B3C4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522d78;
/* rgb */ color: rgb(82, 45, 120);
/* oklch */ color: oklch(38.3% 0.125 303.8);
Tailwind
colors: {
  custom: {
    50: '#86689f',
    500: '#522d78',
    950: '#000000',
  },
}
SCSS
$custom: #522d78;
$custom-light: #86689f;
$custom-dark: #000000;
JSON
{
  "hex": "#522d78",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 269.6,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3831,
    "c": 0.12466,
    "h": 303.8
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#522D78
secondary
#81A958
accent
#D55395
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522D78

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

Preview Lab → · Contrast checker → · Palette generator →

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