#501D7F#501D7F

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

Color values

HEX#501D7F
RGBrgb(80, 29, 127)
HSLhsl(271, 63%, 31%)
HSVhsv(271, 77%, 50%)
CMYKcmyk(37%, 77.2%, 0%, 50.2%)
CIE-LABlab(24.05, 42.55, -45.52)
CIE-LCHlch(24.05, 62.31, 313.07°)
OKLaboklab(36.44% 0.0842 -0.1297)
OKLCHoklch(36.44% 0.155 303)
XYZxyz(7.5775, 4.1165, 20.4699)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D7F #4C7F1D
analogous
#1F1D7F #501D7F #7F1D7D
triadic
#501D7F #7F501D #1D7F50
tetradic
#501D7F #7F1F1D #4C7F1D #1D7D7F
square
#501D7F #7F1F1D #4C7F1D #1D7D7F
split-complementary
#501D7F #7D7F1D #1D7F1F
monochromatic
#11061B #31124D #501D7F #6F28B1 #8E42D4

Accessibility & contrast

On white

11.52
#501D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D7F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D7F#FFFFFF#000000##FFFFFF
##501D7F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501d7f;
/* rgb */ color: rgb(80, 29, 127);
/* oklch */ color: oklch(36.4% 0.155 303.0);
Tailwind
colors: {
  custom: {
    50: '#865fa5',
    500: '#501d7f',
    950: '#000000',
  },
}
SCSS
$custom: #501d7f;
$custom-light: #865fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#501d7f",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 271.224,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.15469,
    "h": 303
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#501D7F
secondary
#7AB245
accent
#E64291
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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