#501884#501884

#501884 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.165 H 301.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#501884
RGBrgb(80, 24, 132)
HSLhsl(271, 69%, 31%)
HSVhsv(271, 82%, 52%)
CMYKcmyk(39.4%, 81.8%, 0%, 48.2%)
CIE-LABlab(23.75, 45.92, -49.16)
CIE-LCHlch(23.75, 67.27, 313.05°)
OKLaboklab(36.37% 0.0874 -0.1404)
OKLCHoklch(36.37% 0.165 301.9)
XYZxyz(7.7987, 4.0246, 22.1913)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501884 #4C8418
analogous
#1A1884 #501884 #841882
triadic
#501884 #845018 #188450
tetradic
#501884 #841A18 #4C8418 #188284
square
#501884 #841A18 #4C8418 #188284
split-complementary
#501884 #828418 #18841A
monochromatic
#11051C #310F50 #501884 #6F21B8 #8E3BDB

Accessibility & contrast

On white

11.63
#501884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#501884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501884
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501884#FFFFFF#000000##FFFFFF
##5018841.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#45364E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501884;
/* rgb */ color: rgb(80, 24, 132);
/* oklch */ color: oklch(36.4% 0.165 301.9);
Tailwind
colors: {
  custom: {
    50: '#875da9',
    500: '#501884',
    950: '#000000',
  },
}
SCSS
$custom: #501884;
$custom-light: #875da9;
$custom-dark: #000000;
JSON
{
  "hex": "#501884",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 271.111,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36367,
    "c": 0.16537,
    "h": 301.9
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#501884
secondary
#7AB840
accent
#EC3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501884

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

Preview Lab → · Contrast checker → · Palette generator →

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