#521756#521756

#521756 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.121 H 325.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#521756
RGBrgb(82, 23, 86)
HSLhsl(296, 58%, 21%)
HSVhsv(296, 73%, 34%)
CMYKcmyk(4.7%, 73.3%, 0%, 66.3%)
CIE-LABlab(20.36, 36.28, -24.79)
CIE-LCHlch(20.36, 43.94, 325.66°)
OKLaboklab(32.91% 0.099 -0.0688)
OKLCHoklch(32.91% 0.121 325.2)
XYZxyz(5.4657, 3.0789, 9.1087)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521756 #1B5617
analogous
#331756 #521756 #56173B
triadic
#521756 #565217 #175652
tetradic
#521756 #563317 #1B5617 #173B56
square
#521756 #563317 #1B5617 #173B56
split-complementary
#521756 #3B5617 #175633
monochromatic
#170618 #240A26 #521756 #802486 #AE31B7

Accessibility & contrast

On white

13.00
#521756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#521756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521756
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521756#FFFFFF#000000##FFFFFF
##5217561.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C58
Deuteranopia (green-blind)
#233454
Tritanopia (blue-blind)
#542134
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521756;
/* rgb */ color: rgb(82, 23, 86);
/* oklch */ color: oklch(32.9% 0.121 325.2);
Tailwind
colors: {
  custom: {
    50: '#855a86',
    500: '#521756',
    950: '#000000',
  },
}
SCSS
$custom: #521756;
$custom-light: #855a86;
$custom-dark: #000000;
JSON
{
  "hex": "#521756",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 296.19,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32908,
    "c": 0.12061,
    "h": 325.2
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#521756
secondary
#418D3C
accent
#E14751
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521756

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

Preview Lab → · Contrast checker → · Palette generator →

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