#521271#521271

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

Color values

HEX#521271
RGBrgb(82, 18, 113)
HSLhsl(280, 73%, 26%)
HSVhsv(280, 84%, 44%)
CMYKcmyk(27.4%, 84.1%, 0%, 55.7%)
CIE-LABlab(21.65, 44.02, -40.47)
CIE-LCHlch(21.65, 59.79, 317.41°)
OKLaboklab(34.45% 0.1007 -0.1147)
OKLCHoklch(34.45% 0.153 311.3)
XYZxyz(6.6760, 3.4189, 15.9278)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521271 #317112
analogous
#221271 #521271 #711260
triadic
#521271 #715212 #127152
tetradic
#521271 #712212 #317112 #126071
square
#521271 #712212 #317112 #126071
split-complementary
#521271 #607112 #127122
monochromatic
#13041A #2C0A3C #521271 #781AA6 #9F23DB

Accessibility & contrast

On white

12.47
#521271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521271
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521271#FFFFFF#000000##FFFFFF
##5212711.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.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: #521271;
/* rgb */ color: rgb(82, 18, 113);
/* oklch */ color: oklch(34.5% 0.153 311.3);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#521271',
    950: '#000000',
  },
}
SCSS
$custom: #521271;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#521271",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 280.421,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34453,
    "c": 0.15264,
    "h": 311.3
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#521271
secondary
#5CA837
accent
#EF3974
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521271

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

Preview Lab → · Contrast checker → · Palette generator →

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