#501987#501987

#501987 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.168 H 300.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#501987
RGBrgb(80, 25, 135)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(24.16, 46.27, -50.38)
CIE-LCHlch(24.16, 68.40, 312.57°)
OKLaboklab(36.74% 0.0857 -0.144)
OKLCHoklch(36.74% 0.168 300.7)
XYZxyz(8.0280, 4.1499, 23.2950)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501987 #508719
analogous
#191987 #501987 #871987
triadic
#501987 #875019 #198750
tetradic
#501987 #871919 #508719 #198787
square
#501987 #871919 #508719 #198787
split-complementary
#501987 #878719 #198719
monochromatic
#130620 #310F53 #501987 #6F23BB #8D3FDB

Accessibility & contrast

On white

11.48
#501987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#501987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501987
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501987#FFFFFF#000000##FFFFFF
##5019871.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501987;
/* rgb */ color: rgb(80, 25, 135);
/* oklch */ color: oklch(36.7% 0.168 300.7);
Tailwind
colors: {
  custom: {
    50: '#875dab',
    500: '#501987',
    950: '#000000',
  },
}
SCSS
$custom: #501987;
$custom-light: #875dab;
$custom-dark: #000000;
JSON
{
  "hex": "#501987",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 270,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36735,
    "c": 0.16753,
    "h": 300.7
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#501987
secondary
#7EBA41
accent
#EC3C94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501987

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

Preview Lab → · Contrast checker → · Palette generator →

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