#501877#501877

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

Color values

HEX#501877
RGBrgb(80, 24, 119)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 80%, 47%)
CMYKcmyk(32.8%, 79.8%, 0%, 53.3%)
CIE-LABlab(22.62, 42.75, -42.76)
CIE-LCHlch(22.62, 60.47, 315.00°)
OKLaboklab(35.23% 0.0909 -0.1216)
OKLCHoklch(35.23% 0.152 306.8)
XYZxyz(6.9640, 3.6907, 17.7947)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501877 #3F7718
analogous
#201877 #501877 #77186F
triadic
#501877 #775018 #187750
tetradic
#501877 #772018 #3F7718 #186F77
square
#501877 #772018 #3F7718 #186F77
split-complementary
#501877 #6F7718 #187720
monochromatic
#110519 #2E0E44 #501877 #7222AA #9333D6

Accessibility & contrast

On white

12.08
#501877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#501877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501877
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501877#FFFFFF#000000##FFFFFF
##5018771.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501877;
/* rgb */ color: rgb(80, 24, 119);
/* oklch */ color: oklch(35.2% 0.152 306.8);
Tailwind
colors: {
  custom: {
    50: '#855c9f',
    500: '#501877',
    950: '#000000',
  },
}
SCSS
$custom: #501877;
$custom-light: #855c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#501877",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 275.368,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.15184,
    "h": 306.8
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#501877
secondary
#6CAC3F
accent
#E93E85
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501877

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

Preview Lab → · Contrast checker → · Palette generator →

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