#521251#521251

#521251 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.123 H 328.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#521251
RGBrgb(82, 18, 81)
HSLhsl(301, 64%, 20%)
HSVhsv(301, 78%, 32%)
CMYKcmyk(0%, 78%, 1.2%, 67.8%)
CIE-LABlab(19.31, 37.38, -23.07)
CIE-LCHlch(19.31, 43.93, 328.31°)
OKLaboklab(32.06% 0.1048 -0.0638)
OKLCHoklch(32.06% 0.123 328.6)
XYZxyz(5.1811, 2.8209, 8.0546)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521251 #125213
analogous
#331252 #521251 #521231
triadic
#521251 #515212 #125152
tetradic
#521251 #523312 #125213 #123152
square
#521251 #523312 #125213 #123152
split-complementary
#521251 #315212 #125233
monochromatic
#190619 #20071F #521251 #841D83 #B628B4

Accessibility & contrast

On white

13.43
#521251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#521251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521251
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521251#FFFFFF#000000##FFFFFF
##5212511.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082953
Deuteranopia (green-blind)
#24324F
Tritanopia (blue-blind)
#551B30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521251;
/* rgb */ color: rgb(82, 18, 81);
/* oklch */ color: oklch(32.1% 0.123 328.6);
Tailwind
colors: {
  custom: {
    50: '#855782',
    500: '#521251',
    950: '#000000',
  },
}
SCSS
$custom: #521251;
$custom-light: #855782;
$custom-dark: #000000;
JSON
{
  "hex": "#521251",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 300.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.32056,
    "c": 0.1227,
    "h": 328.6
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#521251
secondary
#358B36
accent
#E74341
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #521251

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

Preview Lab → · Contrast checker → · Palette generator →

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