#501687#501687

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

Color values

HEX#501687
RGBrgb(80, 22, 135)
HSLhsl(271, 72%, 31%)
HSVhsv(271, 84%, 53%)
CMYKcmyk(40.7%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.77, 47.42, -51.02)
CIE-LCHlch(23.77, 69.66, 312.90°)
OKLaboklab(36.46% 0.088 -0.1459)
OKLCHoklch(36.46% 0.17 301.1)
XYZxyz(7.9673, 4.0285, 23.2748)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501687 #4D8716
analogous
#171687 #501687 #871685
triadic
#501687 #875016 #168750
tetradic
#501687 #871716 #4D8716 #168587
square
#501687 #871716 #4D8716 #168587
split-complementary
#501687 #858716 #168717
monochromatic
#12051E #310D52 #501687 #6F1FBC #8E39DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##501687#FFFFFF#000000##FFFFFF
##5016871.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)
#00388A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#433650
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #501687;
/* rgb */ color: rgb(80, 22, 135);
/* oklch */ color: oklch(36.5% 0.170 301.1);
Tailwind
colors: {
  custom: {
    50: '#875cab',
    500: '#501687',
    950: '#000000',
  },
}
SCSS
$custom: #501687;
$custom-light: #875cab;
$custom-dark: #000000;
JSON
{
  "hex": "#501687",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 270.796,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.17034,
    "h": 301.1
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#501687
secondary
#7BBB3E
accent
#EF3991
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501687

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

Preview Lab → · Contrast checker → · Palette generator →

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