#522256#522256

#522256 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.103 H 324.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#522256
RGBrgb(82, 34, 86)
HSLhsl(295, 43%, 24%)
HSVhsv(295, 60%, 34%)
CMYKcmyk(4.7%, 60.5%, 0%, 66.3%)
CIE-LABlab(22.34, 30.82, -21.65)
CIE-LCHlch(22.34, 37.66, 324.91°)
OKLaboklab(34.35% 0.0839 -0.0599)
OKLCHoklch(34.35% 0.103 324.5)
XYZxyz(5.7313, 3.6101, 9.1972)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522256 #265622
analogous
#382256 #522256 #562240
triadic
#522256 #565222 #225652
tetradic
#522256 #563822 #265622 #224056
square
#522256 #563822 #265622 #224056
split-complementary
#522256 #405622 #225638
monochromatic
#150916 #28112A #522256 #7C3382 #A645AE

Accessibility & contrast

On white

12.20
#522256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522256
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522256#FFFFFF#000000##FFFFFF
##5222561.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3258
Deuteranopia (green-blind)
#2A3755
Tritanopia (blue-blind)
#542938
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522256;
/* rgb */ color: rgb(82, 34, 86);
/* oklch */ color: oklch(34.3% 0.103 324.5);
Tailwind
colors: {
  custom: {
    50: '#846086',
    500: '#522256',
    950: '#000000',
  },
}
SCSS
$custom: #522256;
$custom-light: #846086;
$custom-dark: #000000;
JSON
{
  "hex": "#522256",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 295.385,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34347,
    "c": 0.10307,
    "h": 324.5
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#522256
secondary
#4F8A4A
accent
#D3555E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522256

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

Preview Lab → · Contrast checker → · Palette generator →

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