#522252#522252

#522252 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.099 H 327.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#522252
RGBrgb(82, 34, 82)
HSLhsl(300, 41%, 23%)
HSVhsv(300, 59%, 32%)
CMYKcmyk(0%, 58.5%, 0%, 67.8%)
CIE-LABlab(22.11, 29.98, -19.33)
CIE-LCHlch(22.11, 35.67, 327.18°)
OKLaboklab(34.11% 0.0834 -0.0532)
OKLCHoklch(34.11% 0.099 327.5)
XYZxyz(5.5746, 3.5474, 8.3721)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522252 #225222
analogous
#3A2252 #522252 #52223A
triadic
#522252 #525222 #225252
tetradic
#522252 #523A22 #225222 #223A52
square
#522252 #523A22 #225222 #223A52
split-complementary
#522252 #3A5222 #22523A
monochromatic
#160916 #271027 #522252 #7D347D #A946A9

Accessibility & contrast

On white

12.29
#522252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522252
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522252#FFFFFF#000000##FFFFFF
##5222521.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3154
Deuteranopia (green-blind)
#2C3751
Tritanopia (blue-blind)
#542736
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522252;
/* rgb */ color: rgb(82, 34, 82);
/* oklch */ color: oklch(34.1% 0.099 327.5);
Tailwind
colors: {
  custom: {
    50: '#846083',
    500: '#522252',
    950: '#000000',
  },
}
SCSS
$custom: #522252;
$custom-light: #846083;
$custom-dark: #000000;
JSON
{
  "hex": "#522252",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 41.379,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.09888,
    "h": 327.5
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#522252
secondary
#4A864A
accent
#D15757
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #522252

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

Preview Lab → · Contrast checker → · Palette generator →

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