#521057#521057

#521057 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.130 H 324.9°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#521057
RGBrgb(82, 16, 87)
HSLhsl(296, 69%, 20%)
HSVhsv(296, 82%, 34%)
CMYKcmyk(5.7%, 81.6%, 0%, 65.9%)
CIE-LABlab(19.44, 39.26, -26.91)
CIE-LCHlch(19.44, 47.60, 325.57°)
OKLaboklab(32.28% 0.1067 -0.075)
OKLCHoklch(32.28% 0.13 324.9)
XYZxyz(5.3851, 2.8529, 9.2820)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521057 #155710
analogous
#2F1057 #521057 #571038
triadic
#521057 #575210 #105752
tetradic
#521057 #572F10 #155710 #103857
square
#521057 #572F10 #155710 #103857
split-complementary
#521057 #385710 #10572F
monochromatic
#18051A #210623 #521057 #831A8B #B323BE

Accessibility & contrast

On white

13.37
#521057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#521057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521057
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521057#FFFFFF#000000##FFFFFF
##5210571.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1F3255
Tritanopia (blue-blind)
#541D33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521057;
/* rgb */ color: rgb(82, 16, 87);
/* oklch */ color: oklch(32.3% 0.130 324.9);
Tailwind
colors: {
  custom: {
    50: '#855787',
    500: '#521057',
    950: '#000000',
  },
}
SCSS
$custom: #521057;
$custom-light: #855787;
$custom-dark: #000000;
JSON
{
  "hex": "#521057",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 295.775,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32277,
    "c": 0.13041,
    "h": 324.9
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#521057
secondary
#399032
accent
#EC3C48
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #521057

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

Preview Lab → · Contrast checker → · Palette generator →

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