#521956#521956

#521956 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.118 H 325.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#521956
RGBrgb(82, 25, 86)
HSLhsl(296, 55%, 22%)
HSVhsv(296, 71%, 34%)
CMYKcmyk(4.7%, 70.9%, 0%, 66.3%)
CIE-LABlab(20.68, 35.38, -24.28)
CIE-LCHlch(20.68, 42.91, 325.54°)
OKLaboklab(33.14% 0.0965 -0.0674)
OKLCHoklch(33.14% 0.118 325.1)
XYZxyz(5.5069, 3.1613, 9.1224)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521956 #1D5619
analogous
#341956 #521956 #56193C
triadic
#521956 #565219 #195652
tetradic
#521956 #563419 #1D5619 #193C56
square
#521956 #563419 #1D5619 #193C56
split-complementary
#521956 #3C5619 #195634
monochromatic
#170718 #250B27 #521956 #7F2785 #AC35B5

Accessibility & contrast

On white

12.87
#521956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521956
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521956#FFFFFF#000000##FFFFFF
##5219561.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D58
Deuteranopia (green-blind)
#253454
Tritanopia (blue-blind)
#542235
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521956;
/* rgb */ color: rgb(82, 25, 86);
/* oklch */ color: oklch(33.1% 0.118 325.1);
Tailwind
colors: {
  custom: {
    50: '#855b86',
    500: '#521956',
    950: '#000000',
  },
}
SCSS
$custom: #521956;
$custom-light: #855b86;
$custom-dark: #000000;
JSON
{
  "hex": "#521956",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 296.066,
    "s": 54.955,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.11772,
    "h": 325.1
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#521956
secondary
#448C3E
accent
#DE4A53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521956

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

Preview Lab → · Contrast checker → · Palette generator →

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