#501780#501780

#501780 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.162 H 303.4°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#501780
RGBrgb(80, 23, 128)
HSLhsl(273, 70%, 30%)
HSVhsv(273, 82%, 50%)
CMYKcmyk(37.5%, 82%, 0%, 49.8%)
CIE-LABlab(23.26, 45.33, -47.44)
CIE-LCHlch(23.26, 65.62, 313.70°)
OKLaboklab(35.91% 0.0894 -0.1353)
OKLCHoklch(35.91% 0.162 303.4)
XYZxyz(7.5100, 3.8768, 20.7705)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501780 #478017
analogous
#1B1780 #501780 #80177C
triadic
#501780 #805017 #178050
tetradic
#501780 #801B17 #478017 #177C80
square
#501780 #801B17 #478017 #177C80
split-complementary
#501780 #7C8017 #17801B
monochromatic
#10051A #300E4C #501780 #7020B4 #9036DB

Accessibility & contrast

On white

11.83
#501780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#501780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501780
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501780#FFFFFF#000000##FFFFFF
##5017801.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#46334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #501780;
/* rgb */ color: rgb(80, 23, 128);
/* oklch */ color: oklch(35.9% 0.162 303.4);
Tailwind
colors: {
  custom: {
    50: '#865ca6',
    500: '#501780',
    950: '#000000',
  },
}
SCSS
$custom: #501780;
$custom-light: #865ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#501780",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 272.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35913,
    "c": 0.1622,
    "h": 303.4
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#501780
secondary
#74B43E
accent
#EC3B8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #501780

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

Preview Lab → · Contrast checker → · Palette generator →

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