#501D8B#501D8B

#501D8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.168 H 298.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#501D8B
RGBrgb(80, 29, 139)
HSLhsl(268, 65%, 33%)
HSVhsv(268, 79%, 55%)
CMYKcmyk(42.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(25.10, 45.61, -51.34)
CIE-LCHlch(25.10, 68.67, 311.62°)
OKLaboklab(37.5% 0.0811 -0.1468)
OKLCHoklch(37.5% 0.168 298.9)
XYZxyz(8.4066, 4.4482, 24.8368)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D8B #588B1D
analogous
#1D218B #501D8B #871D8B
triadic
#501D8B #8B501D #1D8B50
tetradic
#501D8B #8B1D21 #588B1D #1D8B87
square
#501D8B #8B1D21 #588B1D #1D8B87
split-complementary
#501D8B #8B871D #218B1D
monochromatic
#160826 #331258 #501D8B #6D28BE #8C49D9

Accessibility & contrast

On white

11.11
#501D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#501D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D8B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D8B#FFFFFF#000000##FFFFFF
##501D8B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#413B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501d8b;
/* rgb */ color: rgb(80, 29, 139);
/* oklch */ color: oklch(37.5% 0.168 298.9);
Tailwind
colors: {
  custom: {
    50: '#875fae',
    500: '#501d8b',
    950: '#000000',
  },
}
SCSS
$custom: #501d8b;
$custom-light: #875fae;
$custom-dark: #000000;
JSON
{
  "hex": "#501d8b",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 267.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37503,
    "c": 0.16776,
    "h": 298.9
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#501D8B
secondary
#86BB49
accent
#E83F9A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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