#521072#521072

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

Color values

HEX#521072
RGBrgb(82, 16, 114)
HSLhsl(280, 75%, 25%)
HSVhsv(280, 86%, 45%)
CMYKcmyk(28.1%, 86%, 0%, 55.3%)
CIE-LABlab(21.50, 44.91, -41.35)
CIE-LCHlch(21.50, 61.05, 317.36°)
OKLaboklab(34.38% 0.102 -0.1173)
OKLCHoklch(34.38% 0.155 311)
XYZxyz(6.7016, 3.3795, 16.2156)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521072 #307210
analogous
#211072 #521072 #721061
triadic
#521072 #725210 #107252
tetradic
#521072 #722110 #307210 #106172
square
#521072 #722110 #307210 #106172
split-complementary
#521072 #617210 #107221
monochromatic
#13041B #2B083C #521072 #7918A8 #9F1FDD

Accessibility & contrast

On white

12.53
#521072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521072
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521072#FFFFFF#000000##FFFFFF
##5210721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521072;
/* rgb */ color: rgb(82, 16, 114);
/* oklch */ color: oklch(34.4% 0.155 311.0);
Tailwind
colors: {
  custom: {
    50: '#87599b',
    500: '#521072',
    950: '#000000',
  },
}
SCSS
$custom: #521072;
$custom-light: #87599b;
$custom-dark: #000000;
JSON
{
  "hex": "#521072",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 280.408,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34377,
    "c": 0.15545,
    "h": 311
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#521072
secondary
#5BA934
accent
#F23673
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521072

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

Preview Lab → · Contrast checker → · Palette generator →

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