#501548#501548

#501548 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.109 H 333.8°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#501548
RGBrgb(80, 21, 72)
HSLhsl(308, 58%, 20%)
HSVhsv(308, 74%, 31%)
CMYKcmyk(0%, 73.7%, 10%, 68.6%)
CIE-LABlab(18.84, 33.94, -17.70)
CIE-LCHlch(18.84, 38.27, 332.46°)
OKLaboklab(31.47% 0.0982 -0.0484)
OKLCHoklch(31.47% 0.109 333.8)
XYZxyz(4.7462, 2.7101, 6.4028)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501548 #15501D
analogous
#3B1550 #501548 #50152A
triadic
#501548 #485015 #154850
tetradic
#501548 #503B15 #15501D #152A50
square
#501548 #503B15 #15501D #152A50
split-complementary
#501548 #2A5015 #15503B
monochromatic
#180616 #20081C #501548 #802274 #B12E9F

Accessibility & contrast

On white

13.62
#501548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#501548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501548
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501548#FFFFFF#000000##FFFFFF
##5015481.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142849
Deuteranopia (green-blind)
#283147
Tritanopia (blue-blind)
#541A2C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #501548;
/* rgb */ color: rgb(80, 21, 72);
/* oklch */ color: oklch(31.5% 0.109 333.8);
Tailwind
colors: {
  custom: {
    50: '#83587b',
    500: '#501548',
    950: '#000000',
  },
}
SCSS
$custom: #501548;
$custom-light: #83587b;
$custom-dark: #000000;
JSON
{
  "hex": "#501548",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 308.136,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31473,
    "c": 0.10947,
    "h": 333.8
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#501548
secondary
#398844
accent
#E25B46
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #501548

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

Preview Lab → · Contrast checker → · Palette generator →

#501548 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva