#501D7C#501D7C

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

Color values

HEX#501D7C
RGBrgb(80, 29, 124)
HSLhsl(272, 62%, 30%)
HSVhsv(272, 77%, 49%)
CMYKcmyk(35.5%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.80, 41.80, -44.02)
CIE-LCHlch(23.80, 60.71, 313.51°)
OKLaboklab(36.19% 0.0849 -0.1254)
OKLCHoklch(36.19% 0.151 304.1)
XYZxyz(7.3849, 4.0395, 19.4555)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D7C #497C1D
analogous
#211D7C #501D7C #7C1D78
triadic
#501D7C #7C501D #1D7C50
tetradic
#501D7C #7C211D #497C1D #1D787C
square
#501D7C #7C211D #497C1D #1D787C
split-complementary
#501D7C #787C1D #1D7C21
monochromatic
#100619 #30114A #501D7C #7029AE #8F41D3

Accessibility & contrast

On white

11.62
#501D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501D7C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D7C#FFFFFF#000000##FFFFFF
##501D7C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#47344B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501d7c;
/* rgb */ color: rgb(80, 29, 124);
/* oklch */ color: oklch(36.2% 0.151 304.1);
Tailwind
colors: {
  custom: {
    50: '#865ea3',
    500: '#501d7c',
    950: '#000000',
  },
}
SCSS
$custom: #501d7c;
$custom-light: #865ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#501d7c",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 272.211,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.36186,
    "c": 0.15142,
    "h": 304.1
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#501D7C
secondary
#76B045
accent
#E5438E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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