#501778#501778

#501778 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.154 H 306.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#501778
RGBrgb(80, 23, 120)
HSLhsl(275, 68%, 28%)
HSVhsv(275, 81%, 47%)
CMYKcmyk(33.3%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.56, 43.40, -43.49)
CIE-LCHlch(22.56, 61.44, 314.94°)
OKLaboklab(35.21% 0.0916 -0.1237)
OKLCHoklch(35.21% 0.154 306.5)
XYZxyz(7.0041, 3.6744, 18.1059)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501778 #3F7817
analogous
#201778 #501778 #78176F
triadic
#501778 #785017 #177850
tetradic
#501778 #782017 #3F7817 #176F78
square
#501778 #782017 #3F7817 #176F78
split-complementary
#501778 #6F7817 #177820
monochromatic
#11051A #2E0D45 #501778 #7221AB #9332D8

Accessibility & contrast

On white

12.11
#501778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#501778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501778
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501778#FFFFFF#000000##FFFFFF
##5017781.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#493047
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501778;
/* rgb */ color: rgb(80, 23, 120);
/* oklch */ color: oklch(35.2% 0.154 306.5);
Tailwind
colors: {
  custom: {
    50: '#865ba0',
    500: '#501778',
    950: '#000000',
  },
}
SCSS
$custom: #501778;
$custom-light: #865ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#501778",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 275.258,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.15396,
    "h": 306.5
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#501778
secondary
#6CAD3E
accent
#EB3D85
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #501778

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

Preview Lab → · Contrast checker → · Palette generator →

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