#501D81#501D81

#501D81 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.157 H 302.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#501D81
RGBrgb(80, 29, 129)
HSLhsl(271, 63%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(38%, 77.5%, 0%, 49.4%)
CIE-LABlab(24.22, 43.06, -46.50)
CIE-LCHlch(24.22, 63.38, 312.80°)
OKLaboklab(36.61% 0.0838 -0.1326)
OKLCHoklch(36.61% 0.157 302.3)
XYZxyz(7.7091, 4.1692, 21.1632)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D81 #4E811D
analogous
#1E1D81 #501D81 #811D80
triadic
#501D81 #81501D #1D8150
tetradic
#501D81 #811E1D #4E811D #1D8081
square
#501D81 #811E1D #4E811D #1D8081
split-complementary
#501D81 #80811D #1D811E
monochromatic
#12071D #31124F #501D81 #6F28B3 #8E44D5

Accessibility & contrast

On white

11.45
#501D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#501D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D81
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D81#FFFFFF#000000##FFFFFF
##501D811.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#46374E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501d81;
/* rgb */ color: rgb(80, 29, 129);
/* oklch */ color: oklch(36.6% 0.157 302.3);
Tailwind
colors: {
  custom: {
    50: '#865fa6',
    500: '#501d81',
    950: '#000000',
  },
}
SCSS
$custom: #501d81;
$custom-light: #865fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#501d81",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 270.6,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36615,
    "c": 0.15688,
    "h": 302.3
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#501D81
secondary
#7CB446
accent
#E64192
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D81

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

Preview Lab → · Contrast checker → · Palette generator →

#501D81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva