#501566#501566

#501566 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.138 H 314.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#501566
RGBrgb(80, 21, 102)
HSLhsl(284, 66%, 24%)
HSVhsv(284, 79%, 40%)
CMYKcmyk(21.6%, 79.4%, 0%, 60%)
CIE-LABlab(20.83, 40.04, -34.65)
CIE-LCHlch(20.83, 52.95, 319.13°)
OKLaboklab(33.54% 0.0973 -0.0978)
OKLCHoklch(33.54% 0.138 314.9)
XYZxyz(5.9743, 3.2013, 12.8710)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501566 #2B6615
analogous
#281566 #501566 #661554
triadic
#501566 #665015 #156650
tetradic
#501566 #662815 #2B6615 #155466
square
#501566 #662815 #2B6615 #155466
split-complementary
#501566 #546615 #156628
monochromatic
#140519 #280B33 #501566 #781F99 #A02ACC

Accessibility & contrast

On white

12.80
#501566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#501566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501566
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501566#FFFFFF#000000##FFFFFF
##5015661.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#113464
Tritanopia (blue-blind)
#4E273D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #501566;
/* rgb */ color: rgb(80, 21, 102);
/* oklch */ color: oklch(33.5% 0.138 314.9);
Tailwind
colors: {
  custom: {
    50: '#845a92',
    500: '#501566',
    950: '#000000',
  },
}
SCSS
$custom: #501566;
$custom-light: #845a92;
$custom-dark: #000000;
JSON
{
  "hex": "#501566",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 283.704,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33536,
    "c": 0.13794,
    "h": 314.9
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#501566
secondary
#559D3A
accent
#E93F6D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501566

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

Preview Lab → · Contrast checker → · Palette generator →

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