#521557#521557

#521557 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.124 H 324.7°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#521557
RGBrgb(82, 21, 87)
HSLhsl(295, 61%, 21%)
HSVhsv(295, 76%, 34%)
CMYKcmyk(5.7%, 75.9%, 0%, 65.9%)
CIE-LABlab(20.12, 37.34, -25.84)
CIE-LCHlch(20.12, 45.40, 325.32°)
OKLaboklab(32.76% 0.1014 -0.0719)
OKLCHoklch(32.76% 0.124 324.7)
XYZxyz(5.4680, 3.0186, 9.3096)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521557 #1A5715
analogous
#311557 #521557 #57153B
triadic
#521557 #575215 #155752
tetradic
#521557 #573115 #1A5715 #153B57
square
#521557 #573115 #1A5715 #153B57
split-complementary
#521557 #3B5715 #155731
monochromatic
#170619 #240926 #521557 #802188 #AF2DBA

Accessibility & contrast

On white

13.10
#521557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#521557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521557
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521557#FFFFFF#000000##FFFFFF
##5215571.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042C59
Deuteranopia (green-blind)
#223355
Tritanopia (blue-blind)
#542034
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521557;
/* rgb */ color: rgb(82, 21, 87);
/* oklch */ color: oklch(32.8% 0.124 324.7);
Tailwind
colors: {
  custom: {
    50: '#855987',
    500: '#521557',
    950: '#000000',
  },
}
SCSS
$custom: #521557;
$custom-light: #855987;
$custom-dark: #000000;
JSON
{
  "hex": "#521557",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 295.455,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32758,
    "c": 0.12429,
    "h": 324.7
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#521557
secondary
#408F39
accent
#E44450
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521557

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

Preview Lab → · Contrast checker → · Palette generator →

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