#522156#522156

#522156 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.105 H 324.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#522156
RGBrgb(82, 33, 86)
HSLhsl(295, 45%, 23%)
HSVhsv(295, 62%, 34%)
CMYKcmyk(4.7%, 61.6%, 0%, 66.3%)
CIE-LABlab(22.14, 31.36, -21.97)
CIE-LCHlch(22.14, 38.29, 324.99°)
OKLaboklab(34.2% 0.0854 -0.0608)
OKLCHoklch(34.2% 0.105 324.6)
XYZxyz(5.7031, 3.5537, 9.1878)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522156 #255621
analogous
#372156 #522156 #56213F
triadic
#522156 #565221 #215652
tetradic
#522156 #563721 #255621 #213F56
square
#522156 #563721 #255621 #213F56
split-complementary
#522156 #3F5621 #215637
monochromatic
#150816 #28102A #522156 #7C3282 #A643AE

Accessibility & contrast

On white

12.28
#522156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#522156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522156
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522156#FFFFFF#000000##FFFFFF
##5221561.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193158
Deuteranopia (green-blind)
#2A3755
Tritanopia (blue-blind)
#542838
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522156;
/* rgb */ color: rgb(82, 33, 86);
/* oklch */ color: oklch(34.2% 0.105 324.6);
Tailwind
colors: {
  custom: {
    50: '#845f86',
    500: '#522156',
    950: '#000000',
  },
}
SCSS
$custom: #522156;
$custom-light: #845f86;
$custom-dark: #000000;
JSON
{
  "hex": "#522156",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 295.472,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.342,
    "c": 0.10481,
    "h": 324.6
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#522156
secondary
#4D8A49
accent
#D4545D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522156

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

Preview Lab → · Contrast checker → · Palette generator →

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