#501886#501886

#501886 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.167 H 301.2°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#501886
RGBrgb(80, 24, 134)
HSLhsl(271, 70%, 31%)
HSVhsv(271, 82%, 53%)
CMYKcmyk(40.3%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.93, 46.42, -50.12)
CIE-LCHlch(23.93, 68.31, 312.80°)
OKLaboklab(36.55% 0.0868 -0.1432)
OKLCHoklch(36.55% 0.167 301.2)
XYZxyz(7.9369, 4.0799, 22.9190)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501886 #4E8618
analogous
#191886 #501886 #861885
triadic
#501886 #865018 #188650
tetradic
#501886 #861918 #4E8618 #188586
square
#501886 #861918 #4E8618 #188586
split-complementary
#501886 #858618 #188619
monochromatic
#12051E #310F52 #501886 #6F21BA #8E3CDC

Accessibility & contrast

On white

11.56
#501886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501886
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501886#FFFFFF#000000##FFFFFF
##5018861.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#44364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501886;
/* rgb */ color: rgb(80, 24, 134);
/* oklch */ color: oklch(36.5% 0.167 301.2);
Tailwind
colors: {
  custom: {
    50: '#875daa',
    500: '#501886',
    950: '#000000',
  },
}
SCSS
$custom: #501886;
$custom-light: #875daa;
$custom-dark: #000000;
JSON
{
  "hex": "#501886",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 270.545,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36549,
    "c": 0.16746,
    "h": 301.2
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#501886
secondary
#7CBA40
accent
#EC3B92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501886

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

Preview Lab → · Contrast checker → · Palette generator →

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