#521D64#521D64

#521D64 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.126 H 316.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#521D64
RGBrgb(82, 29, 100)
HSLhsl(285, 55%, 25%)
HSVhsv(285, 71%, 39%)
CMYKcmyk(18%, 71%, 0%, 60.8%)
CIE-LABlab(22.28, 36.49, -31.00)
CIE-LCHlch(22.28, 47.88, 319.65°)
OKLaboklab(34.59% 0.0912 -0.087)
OKLCHoklch(34.59% 0.126 316.3)
XYZxyz(6.2189, 3.5929, 12.4200)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D64 #2F641D
analogous
#2F1D64 #521D64 #641D52
triadic
#521D64 #64521D #1D6452
tetradic
#521D64 #642F1D #2F641D #1D5264
square
#521D64 #642F1D #2F641D #1D5264
split-complementary
#521D64 #52641D #1D642F
monochromatic
#130718 #2B0F35 #521D64 #792B93 #A039C3

Accessibility & contrast

On white

12.22
#521D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#521D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D64
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D64#FFFFFF#000000##FFFFFF
##521D641.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#1D3762
Tritanopia (blue-blind)
#512A3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521d64;
/* rgb */ color: rgb(82, 29, 100);
/* oklch */ color: oklch(34.6% 0.126 316.3);
Tailwind
colors: {
  custom: {
    50: '#855e90',
    500: '#521d64',
    950: '#000000',
  },
}
SCSS
$custom: #521d64;
$custom-light: #855e90;
$custom-dark: #000000;
JSON
{
  "hex": "#521d64",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 284.789,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.12609,
    "h": 316.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#521D64
secondary
#599944
accent
#DE496F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521D64

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

Preview Lab → · Contrast checker → · Palette generator →

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