#521B60#521B60

#521B60 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.125 H 318.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#521B60
RGBrgb(82, 27, 96)
HSLhsl(288, 56%, 24%)
HSVhsv(288, 72%, 38%)
CMYKcmyk(14.6%, 71.9%, 0%, 62.4%)
CIE-LABlab(21.66, 36.56, -29.36)
CIE-LCHlch(21.66, 46.88, 321.24°)
OKLaboklab(34.06% 0.0939 -0.0822)
OKLCHoklch(34.06% 0.125 318.8)
XYZxyz(5.9826, 3.4225, 11.4095)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B60 #29601B
analogous
#301B60 #521B60 #601B4C
triadic
#521B60 #60521B #1B6052
tetradic
#521B60 #60301B #29601B #1B4C60
square
#521B60 #60301B #29601B #1B4C60
split-complementary
#521B60 #4C601B #1B6030
monochromatic
#140718 #290E30 #521B60 #7B2890 #A436C0

Accessibility & contrast

On white

12.47
#521B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#521B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B60
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B60#FFFFFF#000000##FFFFFF
##521B601.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013062
Deuteranopia (green-blind)
#1F365E
Tritanopia (blue-blind)
#52283B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521b60;
/* rgb */ color: rgb(82, 27, 96);
/* oklch */ color: oklch(34.1% 0.125 318.8);
Tailwind
colors: {
  custom: {
    50: '#855c8d',
    500: '#521b60',
    950: '#000000',
  },
}
SCSS
$custom: #521b60;
$custom-light: #855c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#521b60",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 287.826,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34057,
    "c": 0.12482,
    "h": 318.8
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#521B60
secondary
#529641
accent
#DF4867
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521B60

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

Preview Lab → · Contrast checker → · Palette generator →

#521B60 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva