#521170#521170

#521170 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.153 H 311.8°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#521170
RGBrgb(82, 17, 112)
HSLhsl(281, 74%, 25%)
HSVhsv(281, 85%, 44%)
CMYKcmyk(26.8%, 84.8%, 0%, 56.1%)
CIE-LABlab(21.45, 44.14, -40.15)
CIE-LCHlch(21.45, 59.66, 317.71°)
OKLaboklab(34.29% 0.1017 -0.1138)
OKLCHoklch(34.29% 0.153 311.8)
XYZxyz(6.6042, 3.3648, 15.6277)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521170 #2F7011
analogous
#231170 #521170 #70115E
triadic
#521170 #705211 #117052
tetradic
#521170 #702311 #2F7011 #115E70
square
#521170 #702311 #2F7011 #115E70
split-complementary
#521170 #5E7011 #117023
monochromatic
#13041B #2B093B #521170 #7919A5 #A021DA

Accessibility & contrast

On white

12.55
#521170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#521170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521170
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521170#FFFFFF#000000##FFFFFF
##5211701.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4E2941
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521170;
/* rgb */ color: rgb(82, 17, 112);
/* oklch */ color: oklch(34.3% 0.153 311.8);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#521170',
    950: '#000000',
  },
}
SCSS
$custom: #521170;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#521170",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 281.053,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34287,
    "c": 0.15263,
    "h": 311.8
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#521170
secondary
#59A735
accent
#F03772
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521170

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

Preview Lab → · Contrast checker → · Palette generator →

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