#521B4E#521B4E

#521B4E is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.107 H 330.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#521B4E
RGBrgb(82, 27, 78)
HSLhsl(304, 50%, 21%)
HSVhsv(304, 67%, 32%)
CMYKcmyk(0%, 67.1%, 4.9%, 67.8%)
CIE-LABlab(20.55, 32.84, -19.09)
CIE-LCHlch(20.55, 37.98, 329.83°)
OKLaboklab(32.89% 0.0932 -0.0524)
OKLCHoklch(32.89% 0.107 330.7)
XYZxyz(5.2467, 3.1281, 7.5337)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B4E #1B521F
analogous
#3B1B52 #521B4E #521B33
triadic
#521B4E #4E521B #1B4E52
tetradic
#521B4E #523B1B #1B521F #1B3352
square
#521B4E #523B1B #1B521F #1B3352
split-complementary
#521B4E #33521B #1B523B
monochromatic
#170816 #240C22 #521B4E #802A7A #AE39A6

Accessibility & contrast

On white

12.92
#521B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B4E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B4E#FFFFFF#000000##FFFFFF
##521B4E1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D50
Deuteranopia (green-blind)
#2A344D
Tritanopia (blue-blind)
#552131
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521b4e;
/* rgb */ color: rgb(82, 27, 78);
/* oklch */ color: oklch(32.9% 0.107 330.7);
Tailwind
colors: {
  custom: {
    50: '#855c80',
    500: '#521b4e',
    950: '#000000',
  },
}
SCSS
$custom: #521b4e;
$custom-light: #855c80;
$custom-dark: #000000;
JSON
{
  "hex": "#521b4e",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 304.364,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32893,
    "c": 0.10696,
    "h": 330.7
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#521B4E
secondary
#418846
accent
#DA584E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #521B4E

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

Preview Lab → · Contrast checker → · Palette generator →

#521B4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva