#522357#522357

#522357 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.102 H 323.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#522357
RGBrgb(82, 35, 87)
HSLhsl(294, 43%, 24%)
HSVhsv(294, 60%, 34%)
CMYKcmyk(5.7%, 59.8%, 0%, 65.9%)
CIE-LABlab(22.60, 30.48, -21.91)
CIE-LCHlch(22.60, 37.54, 324.30°)
OKLaboklab(34.56% 0.0825 -0.0606)
OKLCHoklch(34.56% 0.102 323.7)
XYZxyz(5.8008, 3.6843, 9.4206)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522357 #285723
analogous
#382357 #522357 #572342
triadic
#522357 #575223 #235752
tetradic
#522357 #573823 #285723 #234257
square
#522357 #573823 #285723 #234257
split-complementary
#522357 #425723 #235738
monochromatic
#150916 #29112B #522357 #7B3583 #A446AE

Accessibility & contrast

On white

12.09
#522357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#522357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522357
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522357#FFFFFF#000000##FFFFFF
##5223571.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3259
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#542A39
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522357;
/* rgb */ color: rgb(82, 35, 87);
/* oklch */ color: oklch(34.6% 0.102 323.7);
Tailwind
colors: {
  custom: {
    50: '#846186',
    500: '#522357',
    950: '#000000',
  },
}
SCSS
$custom: #522357;
$custom-light: #846186;
$custom-dark: #000000;
JSON
{
  "hex": "#522357",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 87
  },
  "hsl": {
    "h": 294.231,
    "s": 42.623,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.10236,
    "h": 323.7
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#522357
secondary
#518B4B
accent
#D25561
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522357

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

Preview Lab → · Contrast checker → · Palette generator →

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