#501256#501256

#501256 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.126 H 324.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#501256
RGBrgb(80, 18, 86)
HSLhsl(295, 65%, 20%)
HSVhsv(295, 79%, 34%)
CMYKcmyk(7%, 79.1%, 0%, 66.3%)
CIE-LABlab(19.27, 37.85, -26.54)
CIE-LCHlch(19.27, 46.23, 324.96°)
OKLaboklab(32.06% 0.1022 -0.074)
OKLCHoklch(32.06% 0.126 324.1)
XYZxyz(5.2041, 2.8103, 9.0706)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501256 #185612
analogous
#2E1256 #501256 #56123A
triadic
#501256 #565012 #125650
tetradic
#501256 #562E12 #185612 #123A56
square
#501256 #562E12 #185612 #123A56
split-complementary
#501256 #3A5612 #12562E
monochromatic
#180519 #210723 #501256 #7F1D89 #AE27BB

Accessibility & contrast

On white

13.44
#501256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#501256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501256
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501256#FFFFFF#000000##FFFFFF
##5012561.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#1F3154
Tritanopia (blue-blind)
#521E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #501256;
/* rgb */ color: rgb(80, 18, 86);
/* oklch */ color: oklch(32.1% 0.126 324.1);
Tailwind
colors: {
  custom: {
    50: '#845786',
    500: '#501256',
    950: '#000000',
  },
}
SCSS
$custom: #501256;
$custom-light: #845786;
$custom-dark: #000000;
JSON
{
  "hex": "#501256",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 294.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.12616,
    "h": 324.1
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#501256
secondary
#3D8F35
accent
#E83F4E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #501256

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

Preview Lab → · Contrast checker → · Palette generator →

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