#501D7D#501D7D

#501D7D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.153 H 303.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#501D7D
RGBrgb(80, 29, 125)
HSLhsl(272, 62%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(36%, 76.8%, 0%, 51%)
CIE-LABlab(23.88, 42.05, -44.52)
CIE-LCHlch(23.88, 61.24, 313.36°)
OKLaboklab(36.27% 0.0847 -0.1268)
OKLCHoklch(36.27% 0.153 303.7)
XYZxyz(7.4484, 4.0649, 19.7903)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D7D #4A7D1D
analogous
#201D7D #501D7D #7D1D7A
triadic
#501D7D #7D501D #1D7D50
tetradic
#501D7D #7D201D #4A7D1D #1D7A7D
square
#501D7D #7D201D #4A7D1D #1D7A7D
split-complementary
#501D7D #7A7D1D #1D7D20
monochromatic
#10061A #30114B #501D7D #7029AF #8F41D3

Accessibility & contrast

On white

11.58
#501D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501D7D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D7D#FFFFFF#000000##FFFFFF
##501D7D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501d7d;
/* rgb */ color: rgb(80, 29, 125);
/* oklch */ color: oklch(36.3% 0.153 303.7);
Tailwind
colors: {
  custom: {
    50: '#865fa3',
    500: '#501d7d',
    950: '#000000',
  },
}
SCSS
$custom: #501d7d;
$custom-light: #865fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#501d7d",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 271.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36271,
    "c": 0.15251,
    "h": 303.7
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#501D7D
secondary
#78B145
accent
#E5428F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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