#501E81#501E81

#501E81 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.156 H 302.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#501E81
RGBrgb(80, 30, 129)
HSLhsl(270, 62%, 31%)
HSVhsv(270, 77%, 51%)
CMYKcmyk(38%, 76.7%, 0%, 49.4%)
CIE-LABlab(24.38, 42.60, -46.24)
CIE-LCHlch(24.38, 62.88, 312.65°)
OKLaboklab(36.73% 0.0828 -0.1319)
OKLCHoklch(36.73% 0.156 302.1)
XYZxyz(7.7340, 4.2190, 21.1715)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501E81 #4F811E
analogous
#1E1E81 #501E81 #811E80
triadic
#501E81 #81501E #1E8150
tetradic
#501E81 #811E1E #4F811E #1E8081
square
#501E81 #811E1E #4F811E #1E8081
split-complementary
#501E81 #80811E #1E811E
monochromatic
#12071E #31124F #501E81 #6F2AB3 #8D46D4

Accessibility & contrast

On white

11.39
#501E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501E81
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501E81#FFFFFF#000000##FFFFFF
##501E811.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.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: #501e81;
/* rgb */ color: rgb(80, 30, 129);
/* oklch */ color: oklch(36.7% 0.156 302.1);
Tailwind
colors: {
  custom: {
    50: '#865fa6',
    500: '#501e81',
    950: '#000000',
  },
}
SCSS
$custom: #501e81;
$custom-light: #865fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#501e81",
  "rgb": {
    "r": 80,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 270.303,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36727,
    "c": 0.15572,
    "h": 302.1
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#501E81
secondary
#7DB447
accent
#E54293
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501E81

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

Preview Lab → · Contrast checker → · Palette generator →

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