#501F87#501F87

#501F87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.161 H 299.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#501F87
RGBrgb(80, 31, 135)
HSLhsl(268, 63%, 33%)
HSVhsv(268, 77%, 53%)
CMYKcmyk(40.7%, 77%, 0%, 47.1%)
CIE-LABlab(25.06, 43.69, -48.91)
CIE-LCHlch(25.06, 65.58, 311.77°)
OKLaboklab(37.36% 0.0804 -0.1397)
OKLCHoklch(37.36% 0.161 299.9)
XYZxyz(8.1703, 4.4346, 23.3425)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F87 #56871F
analogous
#1F2287 #501F87 #841F87
triadic
#501F87 #87501F #1F8750
tetradic
#501F87 #871F22 #56871F #1F8784
square
#501F87 #871F22 #56871F #1F8784
split-complementary
#501F87 #87841F #22871F
monochromatic
#150823 #331455 #501F87 #6D2AB9 #8C4BD6

Accessibility & contrast

On white

11.13
#501F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#501F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F87
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F87#FFFFFF#000000##FFFFFF
##501F871.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#433A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501f87;
/* rgb */ color: rgb(80, 31, 135);
/* oklch */ color: oklch(37.4% 0.161 299.9);
Tailwind
colors: {
  custom: {
    50: '#8760ab',
    500: '#501f87',
    950: '#000000',
  },
}
SCSS
$custom: #501f87;
$custom-light: #8760ab;
$custom-dark: #000000;
JSON
{
  "hex": "#501f87",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 268.269,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.1612,
    "h": 299.9
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#501F87
secondary
#84B84A
accent
#E64299
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501F87

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

Preview Lab → · Contrast checker → · Palette generator →

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