#522160#522160

#522160 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.8% C 0.116 H 318.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#522160
RGBrgb(82, 33, 96)
HSLhsl(287, 49%, 25%)
HSVhsv(287, 66%, 38%)
CMYKcmyk(14.6%, 65.6%, 0%, 62.4%)
CIE-LABlab(22.75, 33.56, -27.63)
CIE-LCHlch(22.75, 43.47, 320.54°)
OKLaboklab(34.84% 0.086 -0.0772)
OKLCHoklch(34.84% 0.116 318.1)
XYZxyz(6.1346, 3.7263, 11.4602)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522160 #2F6021
analogous
#332160 #522160 #60214E
triadic
#522160 #605221 #216052
tetradic
#522160 #603321 #2F6021 #214E60
square
#522160 #603321 #2F6021 #214E60
split-complementary
#522160 #4E6021 #216033
monochromatic
#130817 #2B1132 #522160 #79318E #A040BB

Accessibility & contrast

On white

12.03
#522160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#522160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522160
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522160#FFFFFF#000000##FFFFFF
##5221601.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3362
Deuteranopia (green-blind)
#24385E
Tritanopia (blue-blind)
#522C3D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522160;
/* rgb */ color: rgb(82, 33, 96);
/* oklch */ color: oklch(34.8% 0.116 318.1);
Tailwind
colors: {
  custom: {
    50: '#85608d',
    500: '#522160',
    950: '#000000',
  },
}
SCSS
$custom: #522160;
$custom-light: #85608d;
$custom-dark: #000000;
JSON
{
  "hex": "#522160",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 286.667,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.11558,
    "h": 318.1
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#522160
secondary
#599449
accent
#D84F6E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522160

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

Preview Lab → · Contrast checker → · Palette generator →

#522160 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva