#501D7E#501D7E

#501D7E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.154 H 303.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#501D7E
RGBrgb(80, 29, 126)
HSLhsl(272, 63%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(36.5%, 77%, 0%, 50.6%)
CIE-LABlab(23.97, 42.30, -45.02)
CIE-LCHlch(23.97, 61.77, 313.22°)
OKLaboklab(36.36% 0.0845 -0.1283)
OKLCHoklch(36.36% 0.154 303.4)
XYZxyz(7.5126, 4.0906, 20.1284)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D7E #4B7E1D
analogous
#1F1D7E #501D7E #7E1D7C
triadic
#501D7E #7E501D #1D7E50
tetradic
#501D7E #7E1F1D #4B7E1D #1D7C7E
square
#501D7E #7E1F1D #4B7E1D #1D7C7E
split-complementary
#501D7E #7C7E1D #1D7E1F
monochromatic
#11061B #30124C #501D7E #7028B0 #8E42D3

Accessibility & contrast

On white

11.55
#501D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501D7E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D7E#FFFFFF#000000##FFFFFF
##501D7E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501d7e;
/* rgb */ color: rgb(80, 29, 126);
/* oklch */ color: oklch(36.4% 0.154 303.4);
Tailwind
colors: {
  custom: {
    50: '#865fa4',
    500: '#501d7e',
    950: '#000000',
  },
}
SCSS
$custom: #501d7e;
$custom-light: #865fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#501d7e",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 271.546,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36357,
    "c": 0.1536,
    "h": 303.4
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#501D7E
secondary
#79B145
accent
#E64290
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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