#501478#501478

#501478 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 306.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#501478
RGBrgb(80, 20, 120)
HSLhsl(276, 71%, 27%)
HSVhsv(276, 83%, 47%)
CMYKcmyk(33.3%, 83.3%, 0%, 52.9%)
CIE-LABlab(22.17, 44.55, -44.14)
CIE-LCHlch(22.17, 62.71, 315.27°)
OKLaboklab(34.93% 0.0942 -0.1256)
OKLCHoklch(34.93% 0.157 306.9)
XYZxyz(6.9478, 3.5619, 18.0872)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501478 #3C7814
analogous
#1E1478 #501478 #78146E
triadic
#501478 #785014 #147850
tetradic
#501478 #781E14 #3C7814 #146E78
square
#501478 #781E14 #3C7814 #146E78
split-complementary
#501478 #6E7814 #14781E
monochromatic
#11041A #2D0B44 #501478 #731DAC #952BDC

Accessibility & contrast

On white

12.26
#501478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#501478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501478
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501478#FFFFFF#000000##FFFFFF
##5014781.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#492F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501478;
/* rgb */ color: rgb(80, 20, 120);
/* oklch */ color: oklch(34.9% 0.157 306.9);
Tailwind
colors: {
  custom: {
    50: '#865aa0',
    500: '#501478',
    950: '#000000',
  },
}
SCSS
$custom: #501478;
$custom-light: #865aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#501478",
  "rgb": {
    "r": 80,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34934,
    "c": 0.157,
    "h": 306.9
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#501478
secondary
#68AE3A
accent
#EE3A82
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #501478

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

Preview Lab → · Contrast checker → · Palette generator →

#501478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva