#501748#501748

#501748 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.7% C 0.106 H 333.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#501748
RGBrgb(80, 23, 72)
HSLhsl(308, 55%, 20%)
HSVhsv(308, 71%, 31%)
CMYKcmyk(0%, 71.2%, 10%, 68.6%)
CIE-LABlab(19.17, 33.03, -17.19)
CIE-LCHlch(19.17, 37.24, 332.50°)
OKLaboklab(31.71% 0.0955 -0.047)
OKLCHoklch(31.71% 0.106 333.8)
XYZxyz(4.7844, 2.7865, 6.4155)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501748 #17501F
analogous
#3B1750 #501748 #50172B
triadic
#501748 #485017 #174850
tetradic
#501748 #503B17 #17501F #172B50
square
#501748 #503B17 #17501F #172B50
split-complementary
#501748 #2B5017 #17503B
monochromatic
#180715 #20091D #501748 #802573 #AF329E

Accessibility & contrast

On white

13.49
#501748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#501748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501748
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501748#FFFFFF#000000##FFFFFF
##5017481.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162949
Deuteranopia (green-blind)
#293247
Tritanopia (blue-blind)
#541B2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #501748;
/* rgb */ color: rgb(80, 23, 72);
/* oklch */ color: oklch(31.7% 0.106 333.8);
Tailwind
colors: {
  custom: {
    50: '#83597b',
    500: '#501748',
    950: '#000000',
  },
}
SCSS
$custom: #501748;
$custom-light: #83597b;
$custom-dark: #000000;
JSON
{
  "hex": "#501748",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 308.421,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31709,
    "c": 0.10646,
    "h": 333.8
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#501748
secondary
#3C8746
accent
#DF5E49
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #501748

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

Preview Lab → · Contrast checker → · Palette generator →

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