#501B7B#501B7B

#501B7B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.153 H 304.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#501B7B
RGBrgb(80, 27, 123)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 48%)
CMYKcmyk(35%, 78%, 0%, 51.8%)
CIE-LABlab(23.40, 42.45, -44.04)
CIE-LCHlch(23.40, 61.16, 313.95°)
OKLaboklab(35.88% 0.0871 -0.1254)
OKLCHoklch(35.88% 0.153 304.8)
XYZxyz(7.2745, 3.9194, 19.1083)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B7B #467B1B
analogous
#201B7B #501B7B #7B1B76
triadic
#501B7B #7B501B #1B7B50
tetradic
#501B7B #7B201B #467B1B #1B767B
square
#501B7B #7B201B #467B1B #1B767B
split-complementary
#501B7B #767B1B #1B7B20
monochromatic
#100619 #2F1049 #501B7B #7126AD #903CD4

Accessibility & contrast

On white

11.77
#501B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B7B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B7B#FFFFFF#000000##FFFFFF
##501B7B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501b7b;
/* rgb */ color: rgb(80, 27, 123);
/* oklch */ color: oklch(35.9% 0.153 304.8);
Tailwind
colors: {
  custom: {
    50: '#865da2',
    500: '#501b7b',
    950: '#000000',
  },
}
SCSS
$custom: #501b7b;
$custom-light: #865da2;
$custom-dark: #000000;
JSON
{
  "hex": "#501b7b",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 273.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.15268,
    "h": 304.8
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#501B7B
secondary
#73AF43
accent
#E7418B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #501B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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