#521371#521371

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

Color values

HEX#521371
RGBrgb(82, 19, 113)
HSLhsl(280, 71%, 26%)
HSVhsv(280, 83%, 44%)
CMYKcmyk(27.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(21.77, 43.67, -40.27)
CIE-LCHlch(21.77, 59.40, 317.32°)
OKLaboklab(34.54% 0.0998 -0.1142)
OKLCHoklch(34.54% 0.152 311.2)
XYZxyz(6.6926, 3.4520, 15.9333)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521371 #327113
analogous
#231371 #521371 #711361
triadic
#521371 #715213 #137152
tetradic
#521371 #712313 #327113 #136171
square
#521371 #712313 #327113 #136171
split-complementary
#521371 #617113 #137123
monochromatic
#13041A #2C0A3D #521371 #781CA5 #9E25DA

Accessibility & contrast

On white

12.42
#521371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521371
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521371#FFFFFF#000000##FFFFFF
##5213711.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521371;
/* rgb */ color: rgb(82, 19, 113);
/* oklch */ color: oklch(34.5% 0.152 311.2);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#521371',
    950: '#000000',
  },
}
SCSS
$custom: #521371;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521371",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 280.213,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34537,
    "c": 0.15165,
    "h": 311.2
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#521371
secondary
#5DA838
accent
#EE3A75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521371

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

Preview Lab → · Contrast checker → · Palette generator →

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