#521659#521659

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

Color values

HEX#521659
RGBrgb(82, 22, 89)
HSLhsl(294, 60%, 22%)
HSVhsv(294, 75%, 35%)
CMYKcmyk(7.9%, 75.3%, 0%, 65.1%)
CIE-LABlab(20.40, 37.32, -26.73)
CIE-LCHlch(20.40, 45.90, 324.39°)
OKLaboklab(33% 0.1002 -0.0745)
OKLCHoklch(33% 0.125 323.4)
XYZxyz(5.5696, 3.0893, 9.7522)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521659 #1D5916
analogous
#311659 #521659 #59163F
triadic
#521659 #595216 #165952
tetradic
#521659 #593116 #1D5916 #163F59
square
#521659 #593116 #1D5916 #163F59
split-complementary
#521659 #3F5916 #165931
monochromatic
#170619 #250A28 #521659 #7F228A #AC2EBB

Accessibility & contrast

On white

12.98
#521659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521659
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521659#FFFFFF#000000##FFFFFF
##5216591.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5B
Deuteranopia (green-blind)
#213457
Tritanopia (blue-blind)
#532136
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521659;
/* rgb */ color: rgb(82, 22, 89);
/* oklch */ color: oklch(33.0% 0.125 323.4);
Tailwind
colors: {
  custom: {
    50: '#855a88',
    500: '#521659',
    950: '#000000',
  },
}
SCSS
$custom: #521659;
$custom-light: #855a88;
$custom-dark: #000000;
JSON
{
  "hex": "#521659",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 293.731,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33,
    "c": 0.12485,
    "h": 323.4
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#521659
secondary
#44903B
accent
#E44455
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521659

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

Preview Lab → · Contrast checker → · Palette generator →

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