#521471#521471

#521471 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.151 H 311.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#521471
RGBrgb(82, 20, 113)
HSLhsl(280, 70%, 26%)
HSVhsv(280, 82%, 44%)
CMYKcmyk(27.4%, 82.3%, 0%, 55.7%)
CIE-LABlab(21.90, 43.30, -40.07)
CIE-LCHlch(21.90, 59.00, 317.22°)
OKLaboklab(34.63% 0.0989 -0.1136)
OKLCHoklch(34.63% 0.151 311.1)
XYZxyz(6.7099, 3.4866, 15.9391)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521471 #337114
analogous
#231471 #521471 #711461
triadic
#521471 #715214 #147152
tetradic
#521471 #712314 #337114 #146171
square
#521471 #712314 #337114 #146171
split-complementary
#521471 #617114 #147123
monochromatic
#13051A #2C0B3D #521471 #781DA5 #9D27D9

Accessibility & contrast

On white

12.37
#521471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521471
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521471#FFFFFF#000000##FFFFFF
##5214711.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4E2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521471;
/* rgb */ color: rgb(82, 20, 113);
/* oklch */ color: oklch(34.6% 0.151 311.1);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#521471',
    950: '#000000',
  },
}
SCSS
$custom: #521471;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521471",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 280,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34626,
    "c": 0.15064,
    "h": 311.1
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#521471
secondary
#5EA739
accent
#ED3B76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521471

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

Preview Lab → · Contrast checker → · Palette generator →

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