#522161#522161

#522161 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.9% C 0.117 H 317.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#522161
RGBrgb(82, 33, 97)
HSLhsl(286, 49%, 25%)
HSVhsv(286, 66%, 38%)
CMYKcmyk(15.5%, 66%, 0%, 62%)
CIE-LABlab(22.81, 33.78, -28.18)
CIE-LCHlch(22.81, 44.00, 320.17°)
OKLaboklab(34.91% 0.086 -0.0788)
OKLCHoklch(34.91% 0.117 317.5)
XYZxyz(6.1809, 3.7449, 11.7042)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522161 #306121
analogous
#322161 #522161 #612150
triadic
#522161 #615221 #216152
tetradic
#522161 #613221 #306121 #215061
square
#522161 #613221 #306121 #215061
split-complementary
#522161 #506121 #216132
monochromatic
#130817 #2B1133 #522161 #79318F #9F40BC

Accessibility & contrast

On white

12.01
#522161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522161
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522161#FFFFFF#000000##FFFFFF
##5221611.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3363
Deuteranopia (green-blind)
#23385F
Tritanopia (blue-blind)
#522C3D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522161;
/* rgb */ color: rgb(82, 33, 97);
/* oklch */ color: oklch(34.9% 0.117 317.5);
Tailwind
colors: {
  custom: {
    50: '#85608e',
    500: '#522161',
    950: '#000000',
  },
}
SCSS
$custom: #522161;
$custom-light: #85608e;
$custom-dark: #000000;
JSON
{
  "hex": "#522161",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 285.938,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.11668,
    "h": 317.5
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#522161
secondary
#5B9549
accent
#D94F6F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522161

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

Preview Lab → · Contrast checker → · Palette generator →

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