#501D8F#501D8F

#501D8F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.172 H 297.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#501D8F
RGBrgb(80, 29, 143)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(44.1%, 79.7%, 0%, 43.9%)
CIE-LABlab(25.46, 46.65, -53.23)
CIE-LCHlch(25.46, 70.78, 311.23°)
OKLaboklab(37.87% 0.0799 -0.1524)
OKLCHoklch(37.87% 0.172 297.7)
XYZxyz(8.7043, 4.5672, 26.4042)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D8F #5C8F1D
analogous
#1D238F #501D8F #891D8F
triadic
#501D8F #8F501D #1D8F50
tetradic
#501D8F #8F1D23 #5C8F1D #1D8F89
square
#501D8F #8F1D23 #5C8F1D #1D8F89
split-complementary
#501D8F #8F891D #238F1D
monochromatic
#170829 #34135C #501D8F #6C27C2 #8C4CDB

Accessibility & contrast

On white

10.98
#501D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#501D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D8F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D8F#FFFFFF#000000##FFFFFF
##501D8F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#403C56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501d8f;
/* rgb */ color: rgb(80, 29, 143);
/* oklch */ color: oklch(37.9% 0.172 297.7);
Tailwind
colors: {
  custom: {
    50: '#8860b1',
    500: '#501d8f',
    950: '#000000',
  },
}
SCSS
$custom: #501d8f;
$custom-light: #8860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#501d8f",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 266.842,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37868,
    "c": 0.17209,
    "h": 297.7
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#501D8F
secondary
#8ABD4B
accent
#E93F9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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