#501C81#501C81

#501C81 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.158 H 302.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#501C81
RGBrgb(80, 28, 129)
HSLhsl(271, 64%, 31%)
HSVhsv(271, 78%, 51%)
CMYKcmyk(38%, 78.3%, 0%, 49.4%)
CIE-LABlab(24.07, 43.50, -46.76)
CIE-LCHlch(24.07, 63.87, 312.94°)
OKLaboklab(36.51% 0.0847 -0.1334)
OKLCHoklch(36.51% 0.158 302.4)
XYZxyz(7.6850, 4.1209, 21.1552)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501C81 #4D811C
analogous
#1D1C81 #501C81 #811C7F
triadic
#501C81 #81501C #1C8150
tetradic
#501C81 #811D1C #4D811C #1C7F81
square
#501C81 #811D1C #4D811C #1C7F81
split-complementary
#501C81 #7F811C #1C811D
monochromatic
#12061C #31114F #501C81 #6F27B3 #8E42D6

Accessibility & contrast

On white

11.51
#501C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501C81
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501C81#FFFFFF#000000##FFFFFF
##501C811.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#46364D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501c81;
/* rgb */ color: rgb(80, 28, 129);
/* oklch */ color: oklch(36.5% 0.158 302.4);
Tailwind
colors: {
  custom: {
    50: '#865ea6',
    500: '#501c81',
    950: '#000000',
  },
}
SCSS
$custom: #501c81;
$custom-light: #865ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#501c81",
  "rgb": {
    "r": 80,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 270.891,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.15801,
    "h": 302.4
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#501C81
secondary
#7BB444
accent
#E74091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501C81

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

Preview Lab → · Contrast checker → · Palette generator →

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