#501D87#501D87

#501D87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.163 H 300.2°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#501D87
RGBrgb(80, 29, 135)
HSLhsl(269, 65%, 32%)
HSVhsv(269, 79%, 53%)
CMYKcmyk(40.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(24.74, 44.59, -49.42)
CIE-LCHlch(24.74, 66.56, 312.06°)
OKLaboklab(37.14% 0.0822 -0.1412)
OKLCHoklch(37.14% 0.163 300.2)
XYZxyz(8.1197, 4.3334, 23.3256)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D87 #54871D
analogous
#1D1F87 #501D87 #851D87
triadic
#501D87 #87501D #1D8750
tetradic
#501D87 #871D1F #54871D #1D8785
square
#501D87 #871D1F #54871D #1D8785
split-complementary
#501D87 #87851D #1F871D
monochromatic
#140722 #321255 #501D87 #6E28B9 #8C47D7

Accessibility & contrast

On white

11.25
#501D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#501D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D87
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D87#FFFFFF#000000##FFFFFF
##501D871.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#433951
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501d87;
/* rgb */ color: rgb(80, 29, 135);
/* oklch */ color: oklch(37.1% 0.163 300.2);
Tailwind
colors: {
  custom: {
    50: '#875fab',
    500: '#501d87',
    950: '#000000',
  },
}
SCSS
$custom: #501d87;
$custom-light: #875fab;
$custom-dark: #000000;
JSON
{
  "hex": "#501d87",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 268.868,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.16341,
    "h": 300.2
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#501D87
secondary
#82B946
accent
#E84097
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501D87

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

Preview Lab → · Contrast checker → · Palette generator →

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