#521172#521172

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

Color values

HEX#521172
RGBrgb(82, 17, 114)
HSLhsl(280, 74%, 26%)
HSVhsv(280, 85%, 45%)
CMYKcmyk(28.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(21.62, 44.58, -41.17)
CIE-LCHlch(21.62, 60.68, 317.28°)
OKLaboklab(34.46% 0.1012 -0.1168)
OKLCHoklch(34.46% 0.155 310.9)
XYZxyz(6.7168, 3.4098, 16.2207)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521172 #317211
analogous
#211172 #521172 #721161
triadic
#521172 #725211 #117252
tetradic
#521172 #722111 #317211 #116172
square
#521172 #722111 #317211 #116172
split-complementary
#521172 #617211 #117221
monochromatic
#13041B #2C093D #521172 #7819A7 #9F21DD

Accessibility & contrast

On white

12.49
#521172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521172
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521172#FFFFFF#000000##FFFFFF
##5211721.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4E2A43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521172;
/* rgb */ color: rgb(82, 17, 114);
/* oklch */ color: oklch(34.5% 0.155 310.9);
Tailwind
colors: {
  custom: {
    50: '#87599b',
    500: '#521172',
    950: '#000000',
  },
}
SCSS
$custom: #521172;
$custom-light: #87599b;
$custom-dark: #000000;
JSON
{
  "hex": "#521172",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 280.206,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34455,
    "c": 0.15454,
    "h": 310.9
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#521172
secondary
#5CA936
accent
#F13774
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521172

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

Preview Lab → · Contrast checker → · Palette generator →

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