#501D8D#501D8D

#501D8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.170 H 298.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#501D8D
RGBrgb(80, 29, 141)
HSLhsl(267, 66%, 33%)
HSVhsv(267, 79%, 55%)
CMYKcmyk(43.3%, 79.4%, 0%, 44.7%)
CIE-LABlab(25.28, 46.13, -52.29)
CIE-LCHlch(25.28, 69.73, 311.42°)
OKLaboklab(37.69% 0.0805 -0.1496)
OKLCHoklch(37.69% 0.17 298.3)
XYZxyz(8.5541, 4.5072, 25.6134)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D8D #5A8D1D
analogous
#1D228D #501D8D #881D8D
triadic
#501D8D #8D501D #1D8D50
tetradic
#501D8D #8D1D22 #5A8D1D #1D8D88
square
#501D8D #8D1D22 #5A8D1D #1D8D88
split-complementary
#501D8D #8D881D #228D1D
monochromatic
#160827 #33135A #501D8D #6D27C0 #8C4BDA

Accessibility & contrast

On white

11.04
#501D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#501D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D8D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D8D#FFFFFF#000000##FFFFFF
##501D8D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#413C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501d8d;
/* rgb */ color: rgb(80, 29, 141);
/* oklch */ color: oklch(37.7% 0.170 298.3);
Tailwind
colors: {
  custom: {
    50: '#885faf',
    500: '#501d8d',
    950: '#000000',
  },
}
SCSS
$custom: #501d8d;
$custom-light: #885faf;
$custom-dark: #000000;
JSON
{
  "hex": "#501d8d",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 267.321,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37685,
    "c": 0.16993,
    "h": 298.3
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#501D8D
secondary
#88BC4A
accent
#E93F9B
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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