#521457#521457

#521457 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.126 H 324.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#521457
RGBrgb(82, 20, 87)
HSLhsl(296, 63%, 21%)
HSVhsv(296, 77%, 34%)
CMYKcmyk(5.7%, 77%, 0%, 65.9%)
CIE-LABlab(19.97, 37.75, -26.07)
CIE-LCHlch(19.97, 45.87, 325.37°)
OKLaboklab(32.65% 0.1025 -0.0725)
OKLCHoklch(32.65% 0.126 324.7)
XYZxyz(5.4500, 2.9826, 9.3036)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521457 #195714
analogous
#301457 #521457 #57143A
triadic
#521457 #575214 #145752
tetradic
#521457 #573014 #195714 #143A57
square
#521457 #573014 #195714 #143A57
split-complementary
#521457 #3A5714 #145730
monochromatic
#170619 #230925 #521457 #811F89 #B02BBB

Accessibility & contrast

On white

13.15
#521457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#521457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521457
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521457#FFFFFF#000000##FFFFFF
##5214571.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B59
Deuteranopia (green-blind)
#213355
Tritanopia (blue-blind)
#541F34
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #521457;
/* rgb */ color: rgb(82, 20, 87);
/* oklch */ color: oklch(32.7% 0.126 324.7);
Tailwind
colors: {
  custom: {
    50: '#855987',
    500: '#521457',
    950: '#000000',
  },
}
SCSS
$custom: #521457;
$custom-light: #855987;
$custom-dark: #000000;
JSON
{
  "hex": "#521457",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 295.522,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32654,
    "c": 0.1256,
    "h": 324.7
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#521457
secondary
#3E8F38
accent
#E6424E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521457

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

Preview Lab → · Contrast checker → · Palette generator →

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