#501B8B#501B8B

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

Color values

HEX#501B8B
RGBrgb(80, 27, 139)
HSLhsl(268, 67%, 33%)
HSVhsv(268, 81%, 55%)
CMYKcmyk(42.4%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.81, 46.46, -51.82)
CIE-LCHlch(24.81, 69.60, 311.88°)
OKLaboklab(37.3% 0.0828 -0.1482)
OKLCHoklch(37.3% 0.17 299.2)
XYZxyz(8.3592, 4.3533, 24.8210)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B8B #568B1B
analogous
#1B1E8B #501B8B #881B8B
triadic
#501B8B #8B501B #1B8B50
tetradic
#501B8B #8B1B1E #568B1B #1B8B88
square
#501B8B #8B1B1E #568B1B #1B8B88
split-complementary
#501B8B #8B881B #1E8B1B
monochromatic
#150725 #331158 #501B8B #6D25BE #8C45DB

Accessibility & contrast

On white

11.23
#501B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#501B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B8B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B8B#FFFFFF#000000##FFFFFF
##501B8B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#423A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501b8b;
/* rgb */ color: rgb(80, 27, 139);
/* oklch */ color: oklch(37.3% 0.170 299.2);
Tailwind
colors: {
  custom: {
    50: '#875eae',
    500: '#501b8b',
    950: '#000000',
  },
}
SCSS
$custom: #501b8b;
$custom-light: #875eae;
$custom-dark: #000000;
JSON
{
  "hex": "#501b8b",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 268.393,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37297,
    "c": 0.1698,
    "h": 299.2
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#501B8B
secondary
#84BC45
accent
#EA3D99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #501B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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