#501578#501578

#501578 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.156 H 306.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#501578
RGBrgb(80, 21, 120)
HSLhsl(276, 70%, 28%)
HSVhsv(276, 83%, 47%)
CMYKcmyk(33.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(22.29, 44.18, -43.93)
CIE-LCHlch(22.29, 62.30, 315.16°)
OKLaboklab(35.02% 0.0934 -0.125)
OKLCHoklch(35.02% 0.156 306.7)
XYZxyz(6.9659, 3.5979, 18.0932)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501578 #3D7815
analogous
#1F1578 #501578 #78156E
triadic
#501578 #785015 #157850
tetradic
#501578 #781F15 #3D7815 #156E78
square
#501578 #781F15 #3D7815 #156E78
split-complementary
#501578 #6E7815 #15781F
monochromatic
#11051A #2D0C44 #501578 #731EAC #942DDA

Accessibility & contrast

On white

12.21
#501578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501578
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501578#FFFFFF#000000##FFFFFF
##5015781.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501578;
/* rgb */ color: rgb(80, 21, 120);
/* oklch */ color: oklch(35.0% 0.156 306.7);
Tailwind
colors: {
  custom: {
    50: '#865ba0',
    500: '#501578',
    950: '#000000',
  },
}
SCSS
$custom: #501578;
$custom-light: #865ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#501578",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 275.758,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.15603,
    "h": 306.7
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#501578
secondary
#69AE3B
accent
#ED3B83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #501578

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

Preview Lab → · Contrast checker → · Palette generator →

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