#501D8E#501D8E

#501D8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.171 H 298.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#501D8E
RGBrgb(80, 29, 142)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(43.7%, 79.6%, 0%, 44.3%)
CIE-LABlab(25.37, 46.39, -52.76)
CIE-LCHlch(25.37, 70.25, 311.32°)
OKLaboklab(37.78% 0.0802 -0.151)
OKLCHoklch(37.78% 0.171 298)
XYZxyz(8.6288, 4.5370, 26.0071)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D8E #5B8E1D
analogous
#1D228E #501D8E #881D8E
triadic
#501D8E #8E501D #1D8E50
tetradic
#501D8E #8E1D22 #5B8E1D #1D8E88
square
#501D8E #8E1D22 #5B8E1D #1D8E88
split-complementary
#501D8E #8E881D #228E1D
monochromatic
#170828 #33135B #501D8E #6D27C1 #8C4BDA

Accessibility & contrast

On white

11.01
#501D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501D8E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D8E#FFFFFF#000000##FFFFFF
##501D8E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#403C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501d8e;
/* rgb */ color: rgb(80, 29, 142);
/* oklch */ color: oklch(37.8% 0.171 298.0);
Tailwind
colors: {
  custom: {
    50: '#885fb0',
    500: '#501d8e',
    950: '#000000',
  },
}
SCSS
$custom: #501d8e;
$custom-light: #885fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#501d8e",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 267.08,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37777,
    "c": 0.171,
    "h": 298
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#501D8E
secondary
#89BD4A
accent
#E93F9C
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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