#522251#522251

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

Color values

HEX#522251
RGBrgb(82, 34, 81)
HSLhsl(301, 41%, 23%)
HSVhsv(301, 59%, 32%)
CMYKcmyk(0%, 58.5%, 1.2%, 67.8%)
CIE-LABlab(22.06, 29.77, -18.75)
CIE-LCHlch(22.06, 35.18, 327.80°)
OKLaboklab(34.05% 0.0832 -0.0515)
OKLCHoklch(34.05% 0.098 328.3)
XYZxyz(5.5368, 3.5323, 8.1732)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522251 #225223
analogous
#3B2252 #522251 #522239
triadic
#522251 #515222 #225152
tetradic
#522251 #523B22 #225223 #223952
square
#522251 #523B22 #225223 #223952
split-complementary
#522251 #395222 #22523B
monochromatic
#160915 #271026 #522251 #7D347C #A946A6

Accessibility & contrast

On white

12.31
#522251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522251
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522251#FFFFFF#000000##FFFFFF
##5222511.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3153
Deuteranopia (green-blind)
#2D3750
Tritanopia (blue-blind)
#552736
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522251;
/* rgb */ color: rgb(82, 34, 81);
/* oklch */ color: oklch(34.1% 0.098 328.3);
Tailwind
colors: {
  custom: {
    50: '#846082',
    500: '#522251',
    950: '#000000',
  },
}
SCSS
$custom: #522251;
$custom-light: #846082;
$custom-dark: #000000;
JSON
{
  "hex": "#522251",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 81
  },
  "hsl": {
    "h": 301.25,
    "s": 41.379,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.09785,
    "h": 328.3
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#522251
secondary
#4A864B
accent
#D15957
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #522251

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

Preview Lab → · Contrast checker → · Palette generator →

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