#522157#522157

#522157 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.106 H 323.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#522157
RGBrgb(82, 33, 87)
HSLhsl(294, 45%, 24%)
HSVhsv(294, 62%, 34%)
CMYKcmyk(5.7%, 62.1%, 0%, 65.9%)
CIE-LABlab(22.20, 31.57, -22.54)
CIE-LCHlch(22.20, 38.80, 324.47°)
OKLaboklab(34.26% 0.0855 -0.0624)
OKLCHoklch(34.26% 0.106 323.9)
XYZxyz(5.7437, 3.5700, 9.4015)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522157 #265721
analogous
#372157 #522157 #572141
triadic
#522157 #575221 #215752
tetradic
#522157 #573721 #265721 #214157
square
#522157 #573721 #265721 #214157
split-complementary
#522157 #415721 #215737
monochromatic
#150816 #28102B #522157 #7C3283 #A643B0

Accessibility & contrast

On white

12.25
#522157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522157
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522157#FFFFFF#000000##FFFFFF
##5221571.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#542838
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522157;
/* rgb */ color: rgb(82, 33, 87);
/* oklch */ color: oklch(34.3% 0.106 323.9);
Tailwind
colors: {
  custom: {
    50: '#845f86',
    500: '#522157',
    950: '#000000',
  },
}
SCSS
$custom: #522157;
$custom-light: #845f86;
$custom-dark: #000000;
JSON
{
  "hex": "#522157",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 294.444,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.10587,
    "h": 323.9
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#522157
secondary
#4F8B49
accent
#D5535F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522157

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

Preview Lab → · Contrast checker → · Palette generator →

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