#501666#501666

#501666 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.137 H 314.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#501666
RGBrgb(80, 22, 102)
HSLhsl(284, 65%, 24%)
HSVhsv(284, 78%, 40%)
CMYKcmyk(21.6%, 78.4%, 0%, 60%)
CIE-LABlab(20.98, 39.63, -34.42)
CIE-LCHlch(20.98, 52.49, 319.03°)
OKLaboklab(33.64% 0.0963 -0.0971)
OKLCHoklch(33.64% 0.137 314.8)
XYZxyz(5.9931, 3.2388, 12.8773)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501666 #2C6616
analogous
#281666 #501666 #661654
triadic
#501666 #665016 #166650
tetradic
#501666 #662816 #2C6616 #165466
square
#501666 #662816 #2C6616 #165466
split-complementary
#501666 #546616 #166628
monochromatic
#140519 #290B34 #501666 #772198 #9F2CCB

Accessibility & contrast

On white

12.74
#501666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#501666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501666
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501666#FFFFFF#000000##FFFFFF
##5016661.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501666;
/* rgb */ color: rgb(80, 22, 102);
/* oklch */ color: oklch(33.6% 0.137 314.8);
Tailwind
colors: {
  custom: {
    50: '#845a92',
    500: '#501666',
    950: '#000000',
  },
}
SCSS
$custom: #501666;
$custom-light: #845a92;
$custom-dark: #000000;
JSON
{
  "hex": "#501666",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 283.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.13674,
    "h": 314.8
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#501666
secondary
#569D3B
accent
#E8406E
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501666

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

Preview Lab → · Contrast checker → · Palette generator →

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