#521171#521171

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

Color values

HEX#521171
RGBrgb(82, 17, 113)
HSLhsl(281, 74%, 25%)
HSVhsv(281, 85%, 44%)
CMYKcmyk(27.4%, 85%, 0%, 55.7%)
CIE-LABlab(21.53, 44.36, -40.66)
CIE-LCHlch(21.53, 60.17, 317.49°)
OKLaboklab(34.37% 0.1015 -0.1153)
OKLCHoklch(34.37% 0.154 311.3)
XYZxyz(6.6602, 3.3872, 15.9225)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521171 #307111
analogous
#221171 #521171 #711160
triadic
#521171 #715211 #117152
tetradic
#521171 #712211 #307111 #116071
square
#521171 #712211 #307111 #116071
split-complementary
#521171 #607111 #117122
monochromatic
#13041B #2B093C #521171 #7919A6 #9F21DB

Accessibility & contrast

On white

12.52
#521171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#521171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521171
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521171#FFFFFF#000000##FFFFFF
##5211711.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521171;
/* rgb */ color: rgb(82, 17, 113);
/* oklch */ color: oklch(34.4% 0.154 311.3);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#521171',
    950: '#000000',
  },
}
SCSS
$custom: #521171;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#521171",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 280.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34371,
    "c": 0.15358,
    "h": 311.3
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#521171
secondary
#5BA836
accent
#F13773
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521171

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

Preview Lab → · Contrast checker → · Palette generator →

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