#521E4E#521E4E

#521E4E is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.102 H 330.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#521E4E
RGBrgb(82, 30, 78)
HSLhsl(305, 46%, 22%)
HSVhsv(305, 63%, 32%)
CMYKcmyk(0%, 63.4%, 4.9%, 67.8%)
CIE-LABlab(21.10, 31.32, -18.22)
CIE-LCHlch(21.10, 36.23, 329.81°)
OKLaboklab(33.3% 0.0889 -0.0499)
OKLCHoklch(33.3% 0.102 330.7)
XYZxyz(5.3191, 3.2728, 7.5578)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E4E #1E5222
analogous
#3C1E52 #521E4E #521E34
triadic
#521E4E #4E521E #1E4E52
tetradic
#521E4E #523C1E #1E5222 #1E3452
square
#521E4E #523C1E #1E5222 #1E3452
split-complementary
#521E4E #34521E #1E523C
monochromatic
#160815 #250E23 #521E4E #7F2E79 #AC3FA3

Accessibility & contrast

On white

12.69
#521E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#521E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E4E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E4E#FFFFFF#000000##FFFFFF
##521E4E1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#2C354D
Tritanopia (blue-blind)
#552333
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521e4e;
/* rgb */ color: rgb(82, 30, 78);
/* oklch */ color: oklch(33.3% 0.102 330.7);
Tailwind
colors: {
  custom: {
    50: '#845d7f',
    500: '#521e4e',
    950: '#000000',
  },
}
SCSS
$custom: #521e4e;
$custom-light: #845d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#521e4e",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 304.615,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33299,
    "c": 0.10194,
    "h": 330.7
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#521E4E
secondary
#45874A
accent
#D65C52
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #521E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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