#501D89#501D89

#501D89 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.166 H 299.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#501D89
RGBrgb(80, 29, 137)
HSLhsl(268, 65%, 33%)
HSVhsv(268, 79%, 54%)
CMYKcmyk(41.6%, 78.8%, 0%, 46.3%)
CIE-LABlab(24.92, 45.10, -50.38)
CIE-LCHlch(24.92, 67.62, 311.83°)
OKLaboklab(37.32% 0.0817 -0.144)
OKLCHoklch(37.32% 0.166 299.6)
XYZxyz(8.2618, 4.3902, 24.0742)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501D89 #56891D
analogous
#1D2089 #501D89 #861D89
triadic
#501D89 #89501D #1D8950
tetradic
#501D89 #891D20 #56891D #1D8986
square
#501D89 #891D20 #56891D #1D8986
split-complementary
#501D89 #89861D #20891D
monochromatic
#150824 #331256 #501D89 #6D28BC #8C48D8

Accessibility & contrast

On white

11.18
#501D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#501D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501D89
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501D89#FFFFFF#000000##FFFFFF
##501D891.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#423A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501d89;
/* rgb */ color: rgb(80, 29, 137);
/* oklch */ color: oklch(37.3% 0.166 299.6);
Tailwind
colors: {
  custom: {
    50: '#875fac',
    500: '#501d89',
    950: '#000000',
  },
}
SCSS
$custom: #501d89;
$custom-light: #875fac;
$custom-dark: #000000;
JSON
{
  "hex": "#501d89",
  "rgb": {
    "r": 80,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 268.333,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.16559,
    "h": 299.6
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#501D89
secondary
#84BA47
accent
#E84099
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501D89

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

Preview Lab → · Contrast checker → · Palette generator →

#501D89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva