#521257#521257

#521257 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.128 H 324.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#521257
RGBrgb(82, 18, 87)
HSLhsl(296, 66%, 21%)
HSVhsv(296, 79%, 34%)
CMYKcmyk(5.7%, 79.3%, 0%, 65.9%)
CIE-LABlab(19.70, 38.53, -26.50)
CIE-LCHlch(19.70, 46.76, 325.48°)
OKLaboklab(32.46% 0.1047 -0.0738)
OKLCHoklch(32.46% 0.128 324.8)
XYZxyz(5.4161, 2.9149, 9.2923)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521257 #175712
analogous
#2F1257 #521257 #571239
triadic
#521257 #575212 #125752
tetradic
#521257 #572F12 #175712 #123957
square
#521257 #572F12 #175712 #123957
split-complementary
#521257 #395712 #12572F
monochromatic
#180519 #220824 #521257 #821C8A #B227BC

Accessibility & contrast

On white

13.27
#521257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#521257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521257
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521257#FFFFFF#000000##FFFFFF
##5212571.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#203255
Tritanopia (blue-blind)
#541E33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #521257;
/* rgb */ color: rgb(82, 18, 87);
/* oklch */ color: oklch(32.5% 0.128 324.8);
Tailwind
colors: {
  custom: {
    50: '#855887',
    500: '#521257',
    950: '#000000',
  },
}
SCSS
$custom: #521257;
$custom-light: #855887;
$custom-dark: #000000;
JSON
{
  "hex": "#521257",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 295.652,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.12809,
    "h": 324.8
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#521257
secondary
#3C9035
accent
#E93F4B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521257

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

Preview Lab → · Contrast checker → · Palette generator →

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