#501A4E#501A4E

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

Color values

HEX#501A4E
RGBrgb(80, 26, 78)
HSLhsl(302, 51%, 21%)
HSVhsv(302, 68%, 31%)
CMYKcmyk(0%, 67.5%, 2.5%, 68.6%)
CIE-LABlab(20.02, 32.73, -19.94)
CIE-LCHlch(20.02, 38.33, 328.65°)
OKLaboklab(32.44% 0.0921 -0.0549)
OKLCHoklch(32.44% 0.107 329.2)
XYZxyz(5.0528, 2.9947, 7.5181)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501A4E #1A501C
analogous
#371A50 #501A4E #501A33
triadic
#501A4E #4E501A #1A4E50
tetradic
#501A4E #50371A #1A501C #1A3350
square
#501A4E #50371A #1A501C #1A3350
split-complementary
#501A4E #33501A #1A5037
monochromatic
#170817 #220B21 #501A4E #7E297B #AC38A8

Accessibility & contrast

On white

13.13
#501A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#501A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501A4E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501A4E#FFFFFF#000000##FFFFFF
##501A4E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#28334D
Tritanopia (blue-blind)
#532031
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #501a4e;
/* rgb */ color: rgb(80, 26, 78);
/* oklch */ color: oklch(32.4% 0.107 329.2);
Tailwind
colors: {
  custom: {
    50: '#835b80',
    500: '#501a4e',
    950: '#000000',
  },
}
SCSS
$custom: #501a4e;
$custom-light: #835b80;
$custom-dark: #000000;
JSON
{
  "hex": "#501a4e",
  "rgb": {
    "r": 80,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 302.222,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3244,
    "c": 0.10722,
    "h": 329.2
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#501A4E
secondary
#408642
accent
#DA534D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #501A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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