#501B84#501B84

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

Color values

HEX#501B84
RGBrgb(80, 27, 132)
HSLhsl(270, 66%, 31%)
HSVhsv(270, 80%, 52%)
CMYKcmyk(39.4%, 79.5%, 0%, 48.2%)
CIE-LABlab(24.18, 44.69, -48.46)
CIE-LCHlch(24.18, 65.93, 312.68°)
OKLaboklab(36.66% 0.0848 -0.1384)
OKLCHoklch(36.66% 0.162 301.5)
XYZxyz(7.8640, 4.1552, 22.2131)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B84 #4F841B
analogous
#1B1B84 #501B84 #841B83
triadic
#501B84 #84501B #1B8450
tetradic
#501B84 #841B1B #4F841B #1B8384
square
#501B84 #841B1B #4F841B #1B8384
split-complementary
#501B84 #83841B #1B841B
monochromatic
#12061E #311151 #501B84 #6F25B7 #8D41D8

Accessibility & contrast

On white

11.47
#501B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B84
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B84#FFFFFF#000000##FFFFFF
##501B841.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#44374F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501b84;
/* rgb */ color: rgb(80, 27, 132);
/* oklch */ color: oklch(36.7% 0.162 301.5);
Tailwind
colors: {
  custom: {
    50: '#875ea9',
    500: '#501b84',
    950: '#000000',
  },
}
SCSS
$custom: #501b84;
$custom-light: #875ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#501b84",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 270.286,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.16232,
    "h": 301.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#501B84
secondary
#7DB743
accent
#E93F93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B84

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

Preview Lab → · Contrast checker → · Palette generator →

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