#521856#521856

#521856 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.119 H 325.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#521856
RGBrgb(82, 24, 86)
HSLhsl(296, 56%, 22%)
HSVhsv(296, 72%, 34%)
CMYKcmyk(4.7%, 72.1%, 0%, 66.3%)
CIE-LABlab(20.52, 35.84, -24.53)
CIE-LCHlch(20.52, 43.43, 325.60°)
OKLaboklab(33.02% 0.0978 -0.0681)
OKLCHoklch(33.02% 0.119 325.1)
XYZxyz(5.4859, 3.1193, 9.1154)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521856 #1C5618
analogous
#331856 #521856 #56183B
triadic
#521856 #565218 #185652
tetradic
#521856 #563318 #1C5618 #183B56
square
#521856 #563318 #1C5618 #183B56
split-complementary
#521856 #3B5618 #185633
monochromatic
#170718 #240B26 #521856 #802586 #AD33B6

Accessibility & contrast

On white

12.93
#521856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521856
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521856#FFFFFF#000000##FFFFFF
##5218561.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D58
Deuteranopia (green-blind)
#243454
Tritanopia (blue-blind)
#542235
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521856;
/* rgb */ color: rgb(82, 24, 86);
/* oklch */ color: oklch(33.0% 0.119 325.1);
Tailwind
colors: {
  custom: {
    50: '#855a86',
    500: '#521856',
    950: '#000000',
  },
}
SCSS
$custom: #521856;
$custom-light: #855a86;
$custom-dark: #000000;
JSON
{
  "hex": "#521856",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 296.129,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33022,
    "c": 0.11919,
    "h": 325.1
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#521856
secondary
#428D3D
accent
#E04852
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521856

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

Preview Lab → · Contrast checker → · Palette generator →

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