#522260#522260

#522260 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.114 H 317.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#522260
RGBrgb(82, 34, 96)
HSLhsl(286, 48%, 25%)
HSVhsv(286, 65%, 38%)
CMYKcmyk(14.6%, 64.6%, 0%, 62.4%)
CIE-LABlab(22.94, 33.03, -27.32)
CIE-LCHlch(22.94, 42.86, 320.40°)
OKLaboklab(34.98% 0.0846 -0.0763)
OKLCHoklch(34.98% 0.114 317.9)
XYZxyz(6.1627, 3.7827, 11.4696)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522260 #306022
analogous
#332260 #522260 #60224F
triadic
#522260 #605222 #226052
tetradic
#522260 #603322 #306022 #224F60
square
#522260 #603322 #306022 #224F60
split-complementary
#522260 #4F6022 #226033
monochromatic
#130817 #2B1233 #522260 #79328D #9F42BA

Accessibility & contrast

On white

11.96
#522260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#522260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522260
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522260#FFFFFF#000000##FFFFFF
##5222601.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113462
Deuteranopia (green-blind)
#25385E
Tritanopia (blue-blind)
#522C3D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522260;
/* rgb */ color: rgb(82, 34, 96);
/* oklch */ color: oklch(35.0% 0.114 317.9);
Tailwind
colors: {
  custom: {
    50: '#85608d',
    500: '#522260',
    950: '#000000',
  },
}
SCSS
$custom: #522260;
$custom-light: #85608d;
$custom-dark: #000000;
JSON
{
  "hex": "#522260",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 96
  },
  "hsl": {
    "h": 286.452,
    "s": 47.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3498,
    "c": 0.11395,
    "h": 317.9
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#522260
secondary
#5B944A
accent
#D7516F
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522260

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

Preview Lab → · Contrast checker → · Palette generator →

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