#521256#521256

#521256 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.127 H 325.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#521256
RGBrgb(82, 18, 86)
HSLhsl(296, 65%, 20%)
HSVhsv(296, 79%, 34%)
CMYKcmyk(4.7%, 79.1%, 0%, 66.3%)
CIE-LABlab(19.63, 38.33, -25.94)
CIE-LCHlch(19.63, 46.28, 325.92°)
OKLaboklab(32.39% 0.1047 -0.0722)
OKLCHoklch(32.39% 0.127 325.4)
XYZxyz(5.3756, 2.8987, 9.0787)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521256 #165612
analogous
#301256 #521256 #561238
triadic
#521256 #565212 #125652
tetradic
#521256 #563012 #165612 #123856
square
#521256 #563012 #165612 #123856
split-complementary
#521256 #385612 #125630
monochromatic
#180519 #220723 #521256 #821D89 #B327BB

Accessibility & contrast

On white

13.29
#521256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#521256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521256
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521256#FFFFFF#000000##FFFFFF
##5212561.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#213254
Tritanopia (blue-blind)
#541E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521256;
/* rgb */ color: rgb(82, 18, 86);
/* oklch */ color: oklch(32.4% 0.127 325.4);
Tailwind
colors: {
  custom: {
    50: '#855886',
    500: '#521256',
    950: '#000000',
  },
}
SCSS
$custom: #521256;
$custom-light: #855886;
$custom-dark: #000000;
JSON
{
  "hex": "#521256",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 296.471,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3239,
    "c": 0.12718,
    "h": 325.4
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#521256
secondary
#3A8F35
accent
#E83F49
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521256

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

Preview Lab → · Contrast checker → · Palette generator →

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