#501B4E#501B4E

#501B4E is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.106 H 329.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#501B4E
RGBrgb(80, 27, 78)
HSLhsl(302, 50%, 21%)
HSVhsv(302, 66%, 31%)
CMYKcmyk(0%, 66.3%, 2.5%, 68.6%)
CIE-LABlab(20.20, 32.24, -19.66)
CIE-LCHlch(20.20, 37.76, 328.62°)
OKLaboklab(32.57% 0.0907 -0.0541)
OKLCHoklch(32.57% 0.106 329.2)
XYZxyz(5.0753, 3.0397, 7.5257)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B4E #1B501D
analogous
#371B50 #501B4E #501B33
triadic
#501B4E #4E501B #1B4E50
tetradic
#501B4E #50371B #1B501D #1B3350
square
#501B4E #50371B #1B501D #1B3350
split-complementary
#501B4E #33501B #1B5037
monochromatic
#170816 #220C21 #501B4E #7E2A7B #AC3AA7

Accessibility & contrast

On white

13.06
#501B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#501B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B4E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B4E#FFFFFF#000000##FFFFFF
##501B4E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C50
Deuteranopia (green-blind)
#28334D
Tritanopia (blue-blind)
#532131
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #501b4e;
/* rgb */ color: rgb(80, 27, 78);
/* oklch */ color: oklch(32.6% 0.106 329.2);
Tailwind
colors: {
  custom: {
    50: '#835b80',
    500: '#501b4e',
    950: '#000000',
  },
}
SCSS
$custom: #501b4e;
$custom-light: #835b80;
$custom-dark: #000000;
JSON
{
  "hex": "#501b4e",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 302.264,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32571,
    "c": 0.1056,
    "h": 329.2
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#501B4E
secondary
#418644
accent
#D9544F
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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