#501D7B#501D7B

#501D7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.150 H 304.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#501D7B
RGBrgb(80, 29, 123)
HSLhsl(273, 62%, 30%)
HSVhsv(273, 76%, 48%)
CMYKcmyk(35%, 76.4%, 0%, 51.8%)
CIE-LABlab(23.72, 41.55, -43.52)
CIE-LCHlch(23.72, 60.17, 313.67°)
OKLaboklab(36.1% 0.0851 -0.1239)
OKLCHoklch(36.1% 0.15 304.5)
XYZxyz(7.3220, 4.0143, 19.1241)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D7B #487B1D
analogous
#211D7B #501D7B #7B1D77
triadic
#501D7B #7B501D #1D7B50
tetradic
#501D7B #7B211D #487B1D #1D777B
square
#501D7B #7B211D #487B1D #1D777B
split-complementary
#501D7B #777B1D #1D7B21
monochromatic
#100619 #301149 #501D7B #7029AD #8F40D2

Accessibility & contrast

On white

11.65
#501D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#501D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D7B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D7B#FFFFFF#000000##FFFFFF
##501D7B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#48344A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501d7b;
/* rgb */ color: rgb(80, 29, 123);
/* oklch */ color: oklch(36.1% 0.150 304.5);
Tailwind
colors: {
  custom: {
    50: '#865ea2',
    500: '#501d7b',
    950: '#000000',
  },
}
SCSS
$custom: #501d7b;
$custom-light: #865ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#501d7b",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 272.553,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.15032,
    "h": 304.5
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#501D7B
secondary
#75AF45
accent
#E5438D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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