#522264#522264

#522264 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.3% C 0.118 H 315.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#522264
RGBrgb(82, 34, 100)
HSLhsl(284, 49%, 26%)
HSVhsv(284, 66%, 39%)
CMYKcmyk(18%, 66%, 0%, 60.8%)
CIE-LABlab(23.20, 33.95, -29.53)
CIE-LCHlch(23.20, 44.99, 318.98°)
OKLaboklab(35.25% 0.0847 -0.0828)
OKLCHoklch(35.25% 0.118 315.7)
XYZxyz(6.3516, 3.8582, 12.4643)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522264 #346422
analogous
#312264 #522264 #642255
triadic
#522264 #645222 #226452
tetradic
#522264 #643122 #346422 #225564
square
#522264 #643122 #346422 #225564
split-complementary
#522264 #556422 #226431
monochromatic
#130817 #2D1236 #522264 #773292 #9D42BF

Accessibility & contrast

On white

11.85
#522264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#522264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522264
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522264#FFFFFF#000000##FFFFFF
##5222641.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3466
Deuteranopia (green-blind)
#223962
Tritanopia (blue-blind)
#512E3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522264;
/* rgb */ color: rgb(82, 34, 100);
/* oklch */ color: oklch(35.3% 0.118 315.7);
Tailwind
colors: {
  custom: {
    50: '#856090',
    500: '#522264',
    950: '#000000',
  },
}
SCSS
$custom: #522264;
$custom-light: #856090;
$custom-dark: #000000;
JSON
{
  "hex": "#522264",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 100
  },
  "hsl": {
    "h": 283.636,
    "s": 49.254,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.11841,
    "h": 315.7
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#522264
secondary
#5F984A
accent
#D94F75
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522264

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

Preview Lab → · Contrast checker → · Palette generator →

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