#501D78#501D78

#501D78 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.147 H 305.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#501D78
RGBrgb(80, 29, 120)
HSLhsl(274, 61%, 29%)
HSVhsv(274, 76%, 47%)
CMYKcmyk(33.3%, 75.8%, 0%, 52.9%)
CIE-LABlab(23.47, 40.80, -42.01)
CIE-LCHlch(23.47, 58.56, 314.16°)
OKLaboklab(35.85% 0.0858 -0.1194)
OKLCHoklch(35.85% 0.147 305.7)
XYZxyz(7.1370, 3.9403, 18.1502)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D78 #45781D
analogous
#221D78 #501D78 #781D73
triadic
#501D78 #78501D #1D7850
tetradic
#501D78 #78221D #45781D #1D7378
square
#501D78 #78221D #45781D #1D7378
split-complementary
#501D78 #73781D #1D7822
monochromatic
#100619 #2F1147 #501D78 #7129A9 #913FD1

Accessibility & contrast

On white

11.74
#501D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#501D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D78
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D78#FFFFFF#000000##FFFFFF
##501D781.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#493349
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501d78;
/* rgb */ color: rgb(80, 29, 120);
/* oklch */ color: oklch(35.9% 0.147 305.7);
Tailwind
colors: {
  custom: {
    50: '#855ea0',
    500: '#501d78',
    950: '#000000',
  },
}
SCSS
$custom: #501d78;
$custom-light: #855ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#501d78",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 273.626,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.14705,
    "h": 305.7
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#501D78
secondary
#72AC45
accent
#E4448A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #501D78

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

Preview Lab → · Contrast checker → · Palette generator →

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