#501986#501986

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

Color values

HEX#501986
RGBrgb(80, 25, 134)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40.3%, 81.3%, 0%, 47.5%)
CIE-LABlab(24.07, 46.02, -49.90)
CIE-LCHlch(24.07, 67.88, 312.69°)
OKLaboklab(36.64% 0.086 -0.1426)
OKLCHoklch(36.64% 0.166 301.1)
XYZxyz(7.9579, 4.1219, 22.9260)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501986 #4F8619
analogous
#191986 #501986 #861985
triadic
#501986 #865019 #198650
tetradic
#501986 #861919 #4F8619 #198586
square
#501986 #861919 #4F8619 #198586
split-complementary
#501986 #858619 #198619
monochromatic
#12061F #310F52 #501986 #6F23BA #8D3EDB

Accessibility & contrast

On white

11.51
#501986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501986
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501986#FFFFFF#000000##FFFFFF
##5019861.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#443750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501986;
/* rgb */ color: rgb(80, 25, 134);
/* oklch */ color: oklch(36.6% 0.166 301.1);
Tailwind
colors: {
  custom: {
    50: '#875daa',
    500: '#501986',
    950: '#000000',
  },
}
SCSS
$custom: #501986;
$custom-light: #875daa;
$custom-dark: #000000;
JSON
{
  "hex": "#501986",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 270.275,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36644,
    "c": 0.16648,
    "h": 301.1
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#501986
secondary
#7DBA41
accent
#EB3C93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501986

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

Preview Lab → · Contrast checker → · Palette generator →

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