#501A86#501A86

#501A86 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.165 H 301.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#501A86
RGBrgb(80, 26, 134)
HSLhsl(270, 68%, 31%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40.3%, 80.6%, 0%, 47.5%)
CIE-LABlab(24.21, 45.61, -49.67)
CIE-LCHlch(24.21, 67.43, 312.56°)
OKLaboklab(36.74% 0.0851 -0.1419)
OKLCHoklch(36.74% 0.165 301)
XYZxyz(7.9797, 4.1654, 22.9332)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501A86 #50861A
analogous
#1A1A86 #501A86 #861A86
triadic
#501A86 #86501A #1A8650
tetradic
#501A86 #861A1A #50861A #1A8686
square
#501A86 #861A1A #50861A #1A8686
split-complementary
#501A86 #86861A #1A861A
monochromatic
#13061F #311053 #501A86 #6F24B9 #8D40DA

Accessibility & contrast

On white

11.46
#501A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#501A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501A86
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501A86#FFFFFF#000000##FFFFFF
##501A861.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#443750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501a86;
/* rgb */ color: rgb(80, 26, 134);
/* oklch */ color: oklch(36.7% 0.165 301.0);
Tailwind
colors: {
  custom: {
    50: '#875eaa',
    500: '#501a86',
    950: '#000000',
  },
}
SCSS
$custom: #501a86;
$custom-light: #875eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#501a86",
  "rgb": {
    "r": 80,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 270,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36742,
    "c": 0.16548,
    "h": 301
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#501A86
secondary
#7EB942
accent
#EA3D94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501A86

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

Preview Lab → · Contrast checker → · Palette generator →

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