#501B81#501B81

#501B81 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.159 H 302.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#501B81
RGBrgb(80, 27, 129)
HSLhsl(271, 65%, 31%)
HSVhsv(271, 79%, 51%)
CMYKcmyk(38%, 79.1%, 0%, 49.4%)
CIE-LABlab(23.92, 43.94, -47.00)
CIE-LCHlch(23.92, 64.34, 313.07°)
OKLaboklab(36.4% 0.0856 -0.1341)
OKLCHoklch(36.4% 0.159 302.6)
XYZxyz(7.6617, 4.0743, 21.1474)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B81 #4C811B
analogous
#1D1B81 #501B81 #811B7F
triadic
#501B81 #81501B #1B8150
tetradic
#501B81 #811D1B #4C811B #1B7F81
square
#501B81 #811D1B #4C811B #1B7F81
split-complementary
#501B81 #7F811B #1B811D
monochromatic
#11061C #31104E #501B81 #6F26B4 #8E3FD7

Accessibility & contrast

On white

11.57
#501B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#501B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B81
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B81#FFFFFF#000000##FFFFFF
##501B811.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#46364D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501b81;
/* rgb */ color: rgb(80, 27, 129);
/* oklch */ color: oklch(36.4% 0.159 302.6);
Tailwind
colors: {
  custom: {
    50: '#865ea6',
    500: '#501b81',
    950: '#000000',
  },
}
SCSS
$custom: #501b81;
$custom-light: #865ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#501b81",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 271.176,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36399,
    "c": 0.15911,
    "h": 302.6
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#501B81
secondary
#7AB543
accent
#E83F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B81

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

Preview Lab → · Contrast checker → · Palette generator →

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