#501F4E#501F4E

#501F4E is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.099 H 329.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#501F4E
RGBrgb(80, 31, 78)
HSLhsl(302, 44%, 22%)
HSVhsv(302, 61%, 31%)
CMYKcmyk(0%, 61.2%, 2.5%, 68.6%)
CIE-LABlab(20.96, 30.16, -18.46)
CIE-LCHlch(20.96, 35.36, 328.52°)
OKLaboklab(33.13% 0.0848 -0.0507)
OKLCHoklch(33.13% 0.099 329.1)
XYZxyz(5.1733, 3.2358, 7.5583)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F4E #1F5021
analogous
#3A1F50 #501F4E #501F36
triadic
#501F4E #4E501F #1F4E50
tetradic
#501F4E #503A1F #1F5021 #1F3650
square
#501F4E #503A1F #1F5021 #1F3650
split-complementary
#501F4E #36501F #1F503A
monochromatic
#160916 #240E23 #501F4E #7C3079 #A841A4

Accessibility & contrast

On white

12.75
#501F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501F4E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F4E#FFFFFF#000000##FFFFFF
##501F4E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#532433
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #501f4e;
/* rgb */ color: rgb(80, 31, 78);
/* oklch */ color: oklch(33.1% 0.099 329.1);
Tailwind
colors: {
  custom: {
    50: '#835e7f',
    500: '#501f4e',
    950: '#000000',
  },
}
SCSS
$custom: #501f4e;
$custom-light: #835e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#501f4e",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 302.449,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33128,
    "c": 0.09877,
    "h": 329.1
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#501F4E
secondary
#468549
accent
#D45954
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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