#501E8B#501E8B

#501E8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.167 H 298.8°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#501E8B
RGBrgb(80, 30, 139)
HSLhsl(268, 64%, 33%)
HSVhsv(268, 78%, 55%)
CMYKcmyk(42.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(25.25, 45.18, -51.09)
CIE-LCHlch(25.25, 68.20, 311.49°)
OKLaboklab(37.61% 0.0802 -0.1461)
OKLCHoklch(37.61% 0.167 298.8)
XYZxyz(8.4315, 4.4980, 24.8451)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501E8B #598B1E
analogous
#1E228B #501E8B #861E8B
triadic
#501E8B #8B501E #1E8B50
tetradic
#501E8B #8B1E22 #598B1E #1E8B86
square
#501E8B #8B1E22 #598B1E #1E8B86
split-complementary
#501E8B #8B861E #228B1E
monochromatic
#160826 #331359 #501E8B #6D29BD #8C4BD8

Accessibility & contrast

On white

11.05
#501E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#501E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501E8B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501E8B#FFFFFF#000000##FFFFFF
##501E8B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#413B54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501e8b;
/* rgb */ color: rgb(80, 30, 139);
/* oklch */ color: oklch(37.6% 0.167 298.8);
Tailwind
colors: {
  custom: {
    50: '#8760ae',
    500: '#501e8b',
    950: '#000000',
  },
}
SCSS
$custom: #501e8b;
$custom-light: #8760ae;
$custom-dark: #000000;
JSON
{
  "hex": "#501e8b",
  "rgb": {
    "r": 80,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 267.523,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.1667,
    "h": 298.8
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

primary
#501E8B
secondary
#87BB4A
accent
#E7409B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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