#501788#501788

#501788 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.170 H 300.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#501788
RGBrgb(80, 23, 136)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 53%)
CMYKcmyk(41.2%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.99, 47.29, -51.29)
CIE-LCHlch(23.99, 69.77, 312.68°)
OKLaboklab(36.64% 0.0869 -0.1466)
OKLCHoklch(36.64% 0.17 300.6)
XYZxyz(8.0575, 4.0958, 23.6538)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501788 #4F8817
analogous
#171788 #501788 #881787
triadic
#501788 #885017 #178850
tetradic
#501788 #881717 #4F8817 #178788
square
#501788 #881717 #4F8817 #178788
split-complementary
#501788 #878817 #178817
monochromatic
#12051F #310E54 #501788 #6F20BC #8D3BDE

Accessibility & contrast

On white

11.54
#501788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#501788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501788
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501788#FFFFFF#000000##FFFFFF
##5017881.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#433750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501788;
/* rgb */ color: rgb(80, 23, 136);
/* oklch */ color: oklch(36.6% 0.170 300.6);
Tailwind
colors: {
  custom: {
    50: '#875cac',
    500: '#501788',
    950: '#000000',
  },
}
SCSS
$custom: #501788;
$custom-light: #875cac;
$custom-dark: #000000;
JSON
{
  "hex": "#501788",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 270.265,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36642,
    "c": 0.17046,
    "h": 300.6
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#501788
secondary
#7DBC3F
accent
#EE3A93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501788

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

Preview Lab → · Contrast checker → · Palette generator →

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