#521370#521370

#521370 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.5% C 0.151 H 311.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#521370
RGBrgb(82, 19, 112)
HSLhsl(281, 71%, 26%)
HSVhsv(281, 83%, 44%)
CMYKcmyk(26.8%, 83%, 0%, 56.1%)
CIE-LABlab(21.69, 43.44, -39.76)
CIE-LCHlch(21.69, 58.89, 317.53°)
OKLaboklab(34.45% 0.1001 -0.1127)
OKLCHoklch(34.45% 0.151 311.6)
XYZxyz(6.6366, 3.4296, 15.6385)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521370 #317013
analogous
#231370 #521370 #70135F
triadic
#521370 #705213 #137052
tetradic
#521370 #702313 #317013 #135F70
square
#521370 #702313 #317013 #135F70
split-complementary
#521370 #5F7013 #137023
monochromatic
#13041A #2C0A3C #521370 #781CA4 #9F25D9

Accessibility & contrast

On white

12.46
#521370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521370
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521370#FFFFFF#000000##FFFFFF
##5213701.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521370;
/* rgb */ color: rgb(82, 19, 112);
/* oklch */ color: oklch(34.5% 0.151 311.6);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#521370',
    950: '#000000',
  },
}
SCSS
$custom: #521370;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521370",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 280.645,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34454,
    "c": 0.15068,
    "h": 311.6
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#521370
secondary
#5CA738
accent
#EE3A74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521370

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

Preview Lab → · Contrast checker → · Palette generator →

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