#501879#501879

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

Color values

HEX#501879
RGBrgb(80, 24, 121)
HSLhsl(275, 67%, 28%)
HSVhsv(275, 80%, 47%)
CMYKcmyk(33.9%, 80.2%, 0%, 52.5%)
CIE-LABlab(22.79, 43.23, -43.76)
CIE-LCHlch(22.79, 61.51, 314.65°)
OKLaboklab(35.4% 0.0904 -0.1245)
OKLCHoklch(35.4% 0.154 306)
XYZxyz(7.0853, 3.7393, 18.4339)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501879 #417918
analogous
#1F1879 #501879 #791871
triadic
#501879 #795018 #187950
tetradic
#501879 #791F18 #417918 #187179
square
#501879 #791F18 #417918 #187179
split-complementary
#501879 #717918 #18791F
monochromatic
#11051A #2E0E46 #501879 #7222AC #9235D7

Accessibility & contrast

On white

12.02
#501879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#501879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501879
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501879#FFFFFF#000000##FFFFFF
##5018791.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#493148
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501879;
/* rgb */ color: rgb(80, 24, 121);
/* oklch */ color: oklch(35.4% 0.154 306.0);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#501879',
    950: '#000000',
  },
}
SCSS
$custom: #501879;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#501879",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 274.639,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35396,
    "c": 0.15392,
    "h": 306
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#501879
secondary
#6EAE3F
accent
#EA3E87
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501879

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

Preview Lab → · Contrast checker → · Palette generator →

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