#521071#521071

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

Color values

HEX#521071
RGBrgb(82, 16, 113)
HSLhsl(281, 75%, 25%)
HSVhsv(281, 86%, 44%)
CMYKcmyk(27.4%, 85.8%, 0%, 55.7%)
CIE-LABlab(21.42, 44.69, -40.84)
CIE-LCHlch(21.42, 60.54, 317.57°)
OKLaboklab(34.29% 0.1022 -0.1158)
OKLCHoklch(34.29% 0.155 311.4)
XYZxyz(6.6450, 3.3569, 15.9175)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521071 #2F7110
analogous
#221071 #521071 #71105F
triadic
#521071 #715210 #107152
tetradic
#521071 #712210 #2F7110 #105F71
square
#521071 #712210 #2F7110 #105F71
split-complementary
#521071 #5F7110 #107122
monochromatic
#13041B #2B083B #521071 #7918A7 #A01FDC

Accessibility & contrast

On white

12.56
#521071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521071
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521071#FFFFFF#000000##FFFFFF
##5210711.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#4E2942
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521071;
/* rgb */ color: rgb(82, 16, 113);
/* oklch */ color: oklch(34.3% 0.154 311.4);
Tailwind
colors: {
  custom: {
    50: '#87589a',
    500: '#521071',
    950: '#000000',
  },
}
SCSS
$custom: #521071;
$custom-light: #87589a;
$custom-dark: #000000;
JSON
{
  "hex": "#521071",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 280.825,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.1545,
    "h": 311.4
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#521071
secondary
#59A934
accent
#F23672
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521071

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

Preview Lab → · Contrast checker → · Palette generator →

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