#501C7E#501C7E

#501C7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.155 H 303.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#501C7E
RGBrgb(80, 28, 126)
HSLhsl(272, 64%, 30%)
HSVhsv(272, 78%, 49%)
CMYKcmyk(36.5%, 77.8%, 0%, 50.6%)
CIE-LABlab(23.81, 42.75, -45.28)
CIE-LCHlch(23.81, 62.27, 313.36°)
OKLaboklab(36.25% 0.0855 -0.129)
OKLCHoklch(36.25% 0.155 303.5)
XYZxyz(7.4885, 4.0423, 20.1204)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501C7E #4A7E1C
analogous
#1F1C7E #501C7E #7E1C7B
triadic
#501C7E #7E501C #1C7E50
tetradic
#501C7E #7E1F1C #4A7E1C #1C7B7E
square
#501C7E #7E1F1C #4A7E1C #1C7B7E
split-complementary
#501C7E #7B7E1C #1C7E1F
monochromatic
#10061A #30114C #501C7E #7027B0 #8F40D5

Accessibility & contrast

On white

11.61
#501C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#501C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501C7E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501C7E#FFFFFF#000000##FFFFFF
##501C7E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#47354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501c7e;
/* rgb */ color: rgb(80, 28, 126);
/* oklch */ color: oklch(36.2% 0.155 303.5);
Tailwind
colors: {
  custom: {
    50: '#865ea4',
    500: '#501c7e',
    950: '#000000',
  },
}
SCSS
$custom: #501c7e;
$custom-light: #865ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#501c7e",
  "rgb": {
    "r": 80,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 271.837,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36246,
    "c": 0.15476,
    "h": 303.5
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#501C7E
secondary
#78B244
accent
#E7418F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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