#522152#522152

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

Color values

HEX#522152
RGBrgb(82, 33, 82)
HSLhsl(300, 43%, 23%)
HSVhsv(300, 60%, 32%)
CMYKcmyk(0%, 59.8%, 0%, 67.8%)
CIE-LABlab(21.91, 30.52, -19.65)
CIE-LCHlch(21.91, 36.30, 327.23°)
OKLaboklab(33.96% 0.0849 -0.0541)
OKLCHoklch(33.96% 0.101 327.5)
XYZxyz(5.5464, 3.4911, 8.3627)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522152 #215221
analogous
#392152 #522152 #522139
triadic
#522152 #525221 #215252
tetradic
#522152 #523921 #215221 #213952
square
#522152 #523921 #215221 #213952
split-complementary
#522152 #395221 #215239
monochromatic
#160916 #260F26 #522152 #7E337E #A944A9

Accessibility & contrast

On white

12.37
#522152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#522152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522152
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522152#FFFFFF#000000##FFFFFF
##5221521.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522152;
/* rgb */ color: rgb(82, 33, 82);
/* oklch */ color: oklch(34.0% 0.101 327.5);
Tailwind
colors: {
  custom: {
    50: '#845f83',
    500: '#522152',
    950: '#000000',
  },
}
SCSS
$custom: #522152;
$custom-light: #845f83;
$custom-dark: #000000;
JSON
{
  "hex": "#522152",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.10066,
    "h": 327.5
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#522152
secondary
#498649
accent
#D25555
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #522152

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

Preview Lab → · Contrast checker → · Palette generator →

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