#501A87#501A87

#501A87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.167 H 300.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#501A87
RGBrgb(80, 26, 135)
HSLhsl(270, 68%, 32%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(24.30, 45.86, -50.15)
CIE-LCHlch(24.30, 67.96, 312.45°)
OKLaboklab(36.83% 0.0848 -0.1433)
OKLCHoklch(36.83% 0.167 300.6)
XYZxyz(8.0497, 4.1935, 23.3023)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501A87 #51871A
analogous
#1A1A87 #501A87 #871A87
triadic
#501A87 #87501A #1A8750
tetradic
#501A87 #871A1A #51871A #1A8787
square
#501A87 #871A1A #51871A #1A8787
split-complementary
#501A87 #87871A #1A871A
monochromatic
#130620 #321054 #501A87 #6E24BA #8D41DA

Accessibility & contrast

On white

11.42
#501A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501A87
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501A87#FFFFFF#000000##FFFFFF
##501A871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#433850
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501a87;
/* rgb */ color: rgb(80, 26, 135);
/* oklch */ color: oklch(36.8% 0.167 300.6);
Tailwind
colors: {
  custom: {
    50: '#875eab',
    500: '#501a87',
    950: '#000000',
  },
}
SCSS
$custom: #501a87;
$custom-light: #875eab;
$custom-dark: #000000;
JSON
{
  "hex": "#501a87",
  "rgb": {
    "r": 80,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 269.725,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36833,
    "c": 0.16654,
    "h": 300.6
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#501A87
secondary
#7FBA42
accent
#EB3D95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501A87

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

Preview Lab → · Contrast checker → · Palette generator →

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