#501B5F#501B5F

#501B5F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.123 H 318.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#501B5F
RGBrgb(80, 27, 95)
HSLhsl(287, 56%, 24%)
HSVhsv(287, 72%, 37%)
CMYKcmyk(15.8%, 71.6%, 0%, 62.7%)
CIE-LABlab(21.27, 35.83, -29.35)
CIE-LCHlch(21.27, 46.31, 320.68°)
OKLaboklab(33.68% 0.0912 -0.0822)
OKLCHoklch(33.68% 0.123 318)
XYZxyz(5.7655, 3.3158, 11.1606)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B5F #2A5F1B
analogous
#2E1B5F #501B5F #5F1B4C
triadic
#501B5F #5F501B #1B5F50
tetradic
#501B5F #5F2E1B #2A5F1B #1B4C5F
square
#501B5F #5F2E1B #2A5F1B #1B4C5F
split-complementary
#501B5F #4C5F1B #1B5F2E
monochromatic
#140718 #280D2F #501B5F #78298F #A036BE

Accessibility & contrast

On white

12.63
#501B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B5F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B5F#FFFFFF#000000##FFFFFF
##501B5F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#1E355D
Tritanopia (blue-blind)
#50283A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501b5f;
/* rgb */ color: rgb(80, 27, 95);
/* oklch */ color: oklch(33.7% 0.123 318.0);
Tailwind
colors: {
  custom: {
    50: '#845c8d',
    500: '#501b5f',
    950: '#000000',
  },
}
SCSS
$custom: #501b5f;
$custom-light: #845c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#501b5f",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 286.765,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33685,
    "c": 0.12283,
    "h": 318
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#501B5F
secondary
#549541
accent
#DF496A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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