#522257#522257

#522257 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.104 H 323.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#522257
RGBrgb(82, 34, 87)
HSLhsl(294, 44%, 24%)
HSVhsv(294, 61%, 34%)
CMYKcmyk(5.7%, 60.9%, 0%, 65.9%)
CIE-LABlab(22.40, 31.03, -22.23)
CIE-LCHlch(22.40, 38.17, 324.39°)
OKLaboklab(34.41% 0.084 -0.0615)
OKLCHoklch(34.41% 0.104 323.8)
XYZxyz(5.7718, 3.6263, 9.4109)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522257 #275722
analogous
#372257 #522257 #572241
triadic
#522257 #575222 #225752
tetradic
#522257 #573722 #275722 #224157
square
#522257 #573722 #275722 #224157
split-complementary
#522257 #415722 #225737
monochromatic
#150916 #29112B #522257 #7B3383 #A544AF

Accessibility & contrast

On white

12.17
#522257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#522257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522257
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522257#FFFFFF#000000##FFFFFF
##5222571.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3259
Deuteranopia (green-blind)
#2A3856
Tritanopia (blue-blind)
#542939
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522257;
/* rgb */ color: rgb(82, 34, 87);
/* oklch */ color: oklch(34.4% 0.104 323.8);
Tailwind
colors: {
  custom: {
    50: '#846086',
    500: '#522257',
    950: '#000000',
  },
}
SCSS
$custom: #522257;
$custom-light: #846086;
$custom-dark: #000000;
JSON
{
  "hex": "#522257",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 294.34,
    "s": 43.802,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34407,
    "c": 0.10413,
    "h": 323.8
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#522257
secondary
#508B4A
accent
#D45460
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522257

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

Preview Lab → · Contrast checker → · Palette generator →

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