#501B79#501B79

#501B79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.151 H 305.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#501B79
RGBrgb(80, 27, 121)
HSLhsl(274, 64%, 29%)
HSVhsv(274, 78%, 47%)
CMYKcmyk(33.9%, 77.7%, 0%, 52.5%)
CIE-LABlab(23.24, 41.95, -43.04)
CIE-LCHlch(23.24, 60.10, 314.27°)
OKLaboklab(35.71% 0.0876 -0.1224)
OKLCHoklch(35.71% 0.151 305.6)
XYZxyz(7.1506, 3.8699, 18.4557)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B79 #44791B
analogous
#211B79 #501B79 #791B73
triadic
#501B79 #79501B #1B7950
tetradic
#501B79 #79211B #44791B #1B7379
square
#501B79 #79211B #44791B #1B7379
split-complementary
#501B79 #73791B #1B7921
monochromatic
#110619 #2F1047 #501B79 #7126AB #913BD3

Accessibility & contrast

On white

11.84
#501B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#501B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B79
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B79#FFFFFF#000000##FFFFFF
##501B791.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#483249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501b79;
/* rgb */ color: rgb(80, 27, 121);
/* oklch */ color: oklch(35.7% 0.151 305.6);
Tailwind
colors: {
  custom: {
    50: '#855da0',
    500: '#501b79',
    950: '#000000',
  },
}
SCSS
$custom: #501b79;
$custom-light: #855da0;
$custom-dark: #000000;
JSON
{
  "hex": "#501b79",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 273.83,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3571,
    "c": 0.15054,
    "h": 305.6
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#501B79
secondary
#71AD43
accent
#E74189
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #501B79

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

Preview Lab → · Contrast checker → · Palette generator →

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