#521757#521757

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

Color values

HEX#521757
RGBrgb(82, 23, 87)
HSLhsl(295, 58%, 22%)
HSVhsv(295, 74%, 34%)
CMYKcmyk(5.7%, 73.6%, 0%, 65.9%)
CIE-LABlab(20.42, 36.48, -25.35)
CIE-LCHlch(20.42, 44.43, 325.20°)
OKLaboklab(32.98% 0.099 -0.0705)
OKLCHoklch(32.98% 0.122 324.6)
XYZxyz(5.5062, 3.0951, 9.3224)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521757 #1C5717
analogous
#321757 #521757 #57173C
triadic
#521757 #575217 #175752
tetradic
#521757 #573217 #1C5717 #173C57
square
#521757 #573217 #1C5717 #173C57
split-complementary
#521757 #3C5717 #175732
monochromatic
#170618 #240A27 #521757 #802487 #AD31B8

Accessibility & contrast

On white

12.97
#521757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#521757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521757
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521757#FFFFFF#000000##FFFFFF
##5217571.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082D59
Deuteranopia (green-blind)
#233455
Tritanopia (blue-blind)
#542135
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521757;
/* rgb */ color: rgb(82, 23, 87);
/* oklch */ color: oklch(33.0% 0.122 324.6);
Tailwind
colors: {
  custom: {
    50: '#855a87',
    500: '#521757',
    950: '#000000',
  },
}
SCSS
$custom: #521757;
$custom-light: #855a87;
$custom-dark: #000000;
JSON
{
  "hex": "#521757",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 295.313,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32975,
    "c": 0.12158,
    "h": 324.6
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#521757
secondary
#428E3C
accent
#E14653
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521757

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

Preview Lab → · Contrast checker → · Palette generator →

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