#521657#521657

#521657 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.123 H 324.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#521657
RGBrgb(82, 22, 87)
HSLhsl(295, 60%, 21%)
HSVhsv(295, 75%, 34%)
CMYKcmyk(5.7%, 74.7%, 0%, 65.9%)
CIE-LABlab(20.27, 36.91, -25.60)
CIE-LCHlch(20.27, 44.92, 325.26°)
OKLaboklab(32.86% 0.1002 -0.0712)
OKLCHoklch(32.86% 0.123 324.6)
XYZxyz(5.4867, 3.0561, 9.3159)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521657 #1B5716
analogous
#321657 #521657 #57163C
triadic
#521657 #575216 #165752
tetradic
#521657 #573216 #1B5716 #163C57
square
#521657 #573216 #1B5716 #163C57
split-complementary
#521657 #3C5716 #165732
monochromatic
#170618 #240A26 #521657 #802288 #AE2FB9

Accessibility & contrast

On white

13.03
#521657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#521657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521657
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521657#FFFFFF#000000##FFFFFF
##5216571.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521657;
/* rgb */ color: rgb(82, 22, 87);
/* oklch */ color: oklch(32.9% 0.123 324.6);
Tailwind
colors: {
  custom: {
    50: '#855a87',
    500: '#521657',
    950: '#000000',
  },
}
SCSS
$custom: #521657;
$custom-light: #855a87;
$custom-dark: #000000;
JSON
{
  "hex": "#521657",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 295.385,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32864,
    "c": 0.12295,
    "h": 324.6
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#521657
secondary
#418E3A
accent
#E34551
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521657

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

Preview Lab → · Contrast checker → · Palette generator →

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