#522159#522159

#522159 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.108 H 322.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#522159
RGBrgb(82, 33, 89)
HSLhsl(293, 46%, 24%)
HSVhsv(293, 63%, 35%)
CMYKcmyk(7.9%, 62.9%, 0%, 65.1%)
CIE-LABlab(22.31, 32.00, -23.69)
CIE-LCHlch(22.31, 39.82, 323.49°)
OKLaboklab(34.39% 0.0857 -0.0657)
OKLCHoklch(34.39% 0.108 322.5)
XYZxyz(5.8265, 3.6031, 9.8378)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522159 #285921
analogous
#362159 #522159 #592144
triadic
#522159 #595221 #215952
tetradic
#522159 #593621 #285921 #214459
square
#522159 #593621 #285921 #214459
split-complementary
#522159 #445921 #215936
monochromatic
#150816 #29102C #522159 #7B3286 #A442B2

Accessibility & contrast

On white

12.21
#522159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#522159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522159
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522159#FFFFFF#000000##FFFFFF
##5221591.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17325B
Deuteranopia (green-blind)
#283758
Tritanopia (blue-blind)
#532939
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522159;
/* rgb */ color: rgb(82, 33, 89);
/* oklch */ color: oklch(34.4% 0.108 322.5);
Tailwind
colors: {
  custom: {
    50: '#845f88',
    500: '#522159',
    950: '#000000',
  },
}
SCSS
$custom: #522159;
$custom-light: #845f88;
$custom-dark: #000000;
JSON
{
  "hex": "#522159",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 292.5,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.10799,
    "h": 322.5
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#522159
secondary
#518D49
accent
#D65263
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522159

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

Preview Lab → · Contrast checker → · Palette generator →

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