#501F5C#501F5C

#501F5C is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.0% C 0.113 H 319.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#501F5C
RGBrgb(80, 31, 92)
HSLhsl(288, 50%, 24%)
HSVhsv(288, 66%, 36%)
CMYKcmyk(13%, 66.3%, 0%, 63.9%)
CIE-LABlab(21.79, 33.15, -26.52)
CIE-LCHlch(21.79, 42.45, 321.34°)
OKLaboklab(34% 0.086 -0.074)
OKLCHoklch(34% 0.113 319.3)
XYZxyz(5.7298, 3.4584, 10.4889)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501F5C #2B5C1F
analogous
#321F5C #501F5C #5C1F4A
triadic
#501F5C #5C501F #1F5C50
tetradic
#501F5C #5C321F #2B5C1F #1F4A5C
square
#501F5C #5C321F #2B5C1F #1F4A5C
split-complementary
#501F5C #4A5C1F #1F5C32
monochromatic
#140817 #28102E #501F5C #782E8A #A03EB8

Accessibility & contrast

On white

12.41
#501F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#501F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501F5C
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501F5C#FFFFFF#000000##FFFFFF
##501F5C1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F315E
Deuteranopia (green-blind)
#23365A
Tritanopia (blue-blind)
#50293A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501f5c;
/* rgb */ color: rgb(80, 31, 92);
/* oklch */ color: oklch(34.0% 0.113 319.3);
Tailwind
colors: {
  custom: {
    50: '#835e8a',
    500: '#501f5c',
    950: '#000000',
  },
}
SCSS
$custom: #501f5c;
$custom-light: #835e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#501f5c",
  "rgb": {
    "r": 80,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 288.197,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34001,
    "c": 0.11344,
    "h": 319.3
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#501F5C
secondary
#559146
accent
#D94F6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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