#521470#521470

#521470 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 311.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#521470
RGBrgb(82, 20, 112)
HSLhsl(280, 70%, 26%)
HSVhsv(280, 82%, 44%)
CMYKcmyk(26.8%, 82.1%, 0%, 56.1%)
CIE-LABlab(21.81, 43.08, -39.55)
CIE-LCHlch(21.81, 58.48, 317.44°)
OKLaboklab(34.54% 0.0992 -0.1121)
OKLCHoklch(34.54% 0.15 311.5)
XYZxyz(6.6539, 3.4642, 15.6442)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521470 #327014
analogous
#241470 #521470 #701460
triadic
#521470 #705214 #147052
tetradic
#521470 #702414 #327014 #146070
square
#521470 #702414 #327014 #146070
split-complementary
#521470 #607014 #147024
monochromatic
#13051A #2C0B3C #521470 #781DA4 #9E27D8

Accessibility & contrast

On white

12.41
#521470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521470
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521470#FFFFFF#000000##FFFFFF
##5214701.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4E2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521470;
/* rgb */ color: rgb(82, 20, 112);
/* oklch */ color: oklch(34.5% 0.150 311.5);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#521470',
    950: '#000000',
  },
}
SCSS
$custom: #521470;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521470",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 280.435,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34543,
    "c": 0.14965,
    "h": 311.5
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#521470
secondary
#5DA639
accent
#ED3B75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521470

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

Preview Lab → · Contrast checker → · Palette generator →

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