#501989#501989

#501989 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.170 H 300.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#501989
RGBrgb(80, 25, 137)
HSLhsl(269, 69%, 32%)
HSVhsv(269, 82%, 54%)
CMYKcmyk(41.6%, 81.8%, 0%, 46.3%)
CIE-LABlab(24.34, 46.77, -51.33)
CIE-LCHlch(24.34, 69.44, 312.34°)
OKLaboklab(36.92% 0.085 -0.1468)
OKLCHoklch(36.92% 0.17 300.1)
XYZxyz(8.1701, 4.2068, 24.0436)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501989 #528919
analogous
#191A89 #501989 #881989
triadic
#501989 #895019 #198950
tetradic
#501989 #89191A #528919 #198988
square
#501989 #89191A #528919 #198988
split-complementary
#501989 #898819 #1A8919
monochromatic
#140621 #321055 #501989 #6E22BD #8D40DC

Accessibility & contrast

On white

11.40
#501989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#501989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501989
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501989#FFFFFF#000000##FFFFFF
##5019891.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#423851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #501989;
/* rgb */ color: rgb(80, 25, 137);
/* oklch */ color: oklch(36.9% 0.170 300.1);
Tailwind
colors: {
  custom: {
    50: '#875dac',
    500: '#501989',
    950: '#000000',
  },
}
SCSS
$custom: #501989;
$custom-light: #875dac;
$custom-dark: #000000;
JSON
{
  "hex": "#501989",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 269.464,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36919,
    "c": 0.16963,
    "h": 300.1
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#501989
secondary
#80BC41
accent
#EC3C95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501989

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

Preview Lab → · Contrast checker → · Palette generator →

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