#501B78#501B78

#501B78 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.149 H 306.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#501B78
RGBrgb(80, 27, 120)
HSLhsl(274, 63%, 29%)
HSVhsv(274, 78%, 47%)
CMYKcmyk(33.3%, 77.5%, 0%, 52.9%)
CIE-LABlab(23.15, 41.71, -42.53)
CIE-LCHlch(23.15, 59.57, 314.44°)
OKLaboklab(35.63% 0.0878 -0.121)
OKLCHoklch(35.63% 0.149 306)
XYZxyz(7.0896, 3.8455, 18.1344)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B78 #43781B
analogous
#221B78 #501B78 #781B72
triadic
#501B78 #78501B #1B7850
tetradic
#501B78 #78221B #43781B #1B7278
square
#501B78 #78221B #43781B #1B7278
split-complementary
#501B78 #72781B #1B7822
monochromatic
#110619 #2F1046 #501B78 #7126AA #913BD3

Accessibility & contrast

On white

11.87
#501B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B78
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B78#FFFFFF#000000##FFFFFF
##501B781.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#493248
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501b78;
/* rgb */ color: rgb(80, 27, 120);
/* oklch */ color: oklch(35.6% 0.149 306.0);
Tailwind
colors: {
  custom: {
    50: '#855da0',
    500: '#501b78',
    950: '#000000',
  },
}
SCSS
$custom: #501b78;
$custom-light: #855da0;
$custom-dark: #000000;
JSON
{
  "hex": "#501b78",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 274.194,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35626,
    "c": 0.14947,
    "h": 306
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#501B78
secondary
#70AC43
accent
#E64188
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #501B78

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

Preview Lab → · Contrast checker → · Palette generator →

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