#521456#521456

#521456 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.125 H 325.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#521456
RGBrgb(82, 20, 86)
HSLhsl(296, 62%, 21%)
HSVhsv(296, 77%, 34%)
CMYKcmyk(4.7%, 76.7%, 0%, 66.3%)
CIE-LABlab(19.91, 37.55, -25.50)
CIE-LCHlch(19.91, 45.39, 325.82°)
OKLaboklab(32.59% 0.1026 -0.0709)
OKLCHoklch(32.59% 0.125 325.3)
XYZxyz(5.4094, 2.9664, 9.0899)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521456 #185614
analogous
#311456 #521456 #561439
triadic
#521456 #565214 #145652
tetradic
#521456 #563114 #185614 #143956
square
#521456 #563114 #185614 #143956
split-complementary
#521456 #395614 #145631
monochromatic
#180619 #230824 #521456 #812088 #B12BB9

Accessibility & contrast

On white

13.18
#521456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#521456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521456
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521456#FFFFFF#000000##FFFFFF
##5214561.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#223354
Tritanopia (blue-blind)
#541F33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #521456;
/* rgb */ color: rgb(82, 20, 86);
/* oklch */ color: oklch(32.6% 0.125 325.3);
Tailwind
colors: {
  custom: {
    50: '#855986',
    500: '#521456',
    950: '#000000',
  },
}
SCSS
$custom: #521456;
$custom-light: #855986;
$custom-dark: #000000;
JSON
{
  "hex": "#521456",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 296.364,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32587,
    "c": 0.12467,
    "h": 325.3
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#521456
secondary
#3D8E38
accent
#E5424C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521456

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

Preview Lab → · Contrast checker → · Palette generator →

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