#501B8D#501B8D

#501B8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.172 H 298.6°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#501B8D
RGBrgb(80, 27, 141)
HSLhsl(268, 68%, 33%)
HSVhsv(268, 81%, 55%)
CMYKcmyk(43.3%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.99, 46.97, -52.76)
CIE-LCHlch(24.99, 70.64, 311.68°)
OKLaboklab(37.48% 0.0822 -0.151)
OKLCHoklch(37.48% 0.172 298.6)
XYZxyz(8.5067, 4.4123, 25.5976)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B8D #588D1B
analogous
#1B1F8D #501B8D #891B8D
triadic
#501B8D #8D501B #1B8D50
tetradic
#501B8D #8D1B1F #588D1B #1B8D89
square
#501B8D #8D1B1F #588D1B #1B8D89
split-complementary
#501B8D #8D891B #1F8D1B
monochromatic
#160726 #33115A #501B8D #6D25C0 #8C47DC

Accessibility & contrast

On white

11.16
#501B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B8D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B8D#FFFFFF#000000##FFFFFF
##501B8D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#413B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501b8d;
/* rgb */ color: rgb(80, 27, 141);
/* oklch */ color: oklch(37.5% 0.172 298.6);
Tailwind
colors: {
  custom: {
    50: '#885eaf',
    500: '#501b8d',
    950: '#000000',
  },
}
SCSS
$custom: #501b8d;
$custom-light: #885eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#501b8d",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 267.895,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37482,
    "c": 0.17192,
    "h": 298.6
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#501B8D
secondary
#86BD46
accent
#EB3D9A
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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