#501B5B#501B5B

#501B5B is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.4% C 0.119 H 320.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#501B5B
RGBrgb(80, 27, 91)
HSLhsl(290, 54%, 23%)
HSVhsv(290, 70%, 36%)
CMYKcmyk(12.1%, 70.3%, 0%, 64.3%)
CIE-LABlab(21.00, 34.95, -27.12)
CIE-LCHlch(21.00, 44.24, 322.18°)
OKLaboklab(33.41% 0.0913 -0.0758)
OKLCHoklch(33.41% 0.119 320.3)
XYZxyz(5.5883, 3.2449, 10.2275)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B5B #265B1B
analogous
#301B5B #501B5B #5B1B46
triadic
#501B5B #5B501B #1B5B50
tetradic
#501B5B #5B301B #265B1B #1B465B
square
#501B5B #5B301B #265B1B #1B465B
split-complementary
#501B5B #465B1B #1B5B30
monochromatic
#150718 #270D2C #501B5B #79298A #A337B9

Accessibility & contrast

On white

12.73
#501B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#501B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B5B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B5B#FFFFFF#000000##FFFFFF
##501B5B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5D
Deuteranopia (green-blind)
#213459
Tritanopia (blue-blind)
#502638
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #501b5b;
/* rgb */ color: rgb(80, 27, 91);
/* oklch */ color: oklch(33.4% 0.119 320.3);
Tailwind
colors: {
  custom: {
    50: '#835c8a',
    500: '#501b5b',
    950: '#000000',
  },
}
SCSS
$custom: #501b5b;
$custom-light: #835c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#501b5b",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 289.688,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33406,
    "c": 0.11866,
    "h": 320.3
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#501B5B
secondary
#4F9141
accent
#DE4A64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #501B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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