#522255#522255

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

Color values

HEX#522255
RGBrgb(82, 34, 85)
HSLhsl(296, 43%, 23%)
HSVhsv(296, 60%, 33%)
CMYKcmyk(3.5%, 60%, 0%, 66.7%)
CIE-LABlab(22.28, 30.61, -21.08)
CIE-LCHlch(22.28, 37.16, 325.45°)
OKLaboklab(34.29% 0.0838 -0.0582)
OKLCHoklch(34.29% 0.102 325.2)
XYZxyz(5.6913, 3.5941, 8.9865)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522255 #255522
analogous
#382255 #522255 #55223E
triadic
#522255 #555222 #225552
tetradic
#522255 #553822 #255522 #223E55
square
#522255 #553822 #255522 #223E55
split-complementary
#522255 #3E5522 #225538
monochromatic
#150916 #281129 #522255 #7C3381 #A645AC

Accessibility & contrast

On white

12.22
#522255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522255
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522255#FFFFFF#000000##FFFFFF
##5222551.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3157
Deuteranopia (green-blind)
#2B3754
Tritanopia (blue-blind)
#542838
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522255;
/* rgb */ color: rgb(82, 34, 85);
/* oklch */ color: oklch(34.3% 0.102 325.2);
Tailwind
colors: {
  custom: {
    50: '#846085',
    500: '#522255',
    950: '#000000',
  },
}
SCSS
$custom: #522255;
$custom-light: #846085;
$custom-dark: #000000;
JSON
{
  "hex": "#522255",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 296.471,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.10201,
    "h": 325.2
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#522255
secondary
#4D894A
accent
#D3555D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522255

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

Preview Lab → · Contrast checker → · Palette generator →

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