#501158#501158

#501158 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.129 H 322.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#501158
RGBrgb(80, 17, 88)
HSLhsl(293, 68%, 21%)
HSVhsv(293, 81%, 35%)
CMYKcmyk(9.1%, 80.7%, 0%, 65.5%)
CIE-LABlab(19.27, 38.63, -27.88)
CIE-LCHlch(19.27, 47.64, 324.18°)
OKLaboklab(32.1% 0.1031 -0.0779)
OKLCHoklch(32.1% 0.129 322.9)
XYZxyz(5.2700, 2.8113, 9.4957)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501158 #195811
analogous
#2C1158 #501158 #58113C
triadic
#501158 #585011 #115850
tetradic
#501158 #582C11 #195811 #113C58
square
#501158 #582C11 #195811 #113C58
split-complementary
#501158 #3C5811 #11582C
monochromatic
#17051A #210725 #501158 #7F1B8B #AD25BF

Accessibility & contrast

On white

13.44
#501158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501158
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501158#FFFFFF#000000##FFFFFF
##5011581.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#1D3156
Tritanopia (blue-blind)
#511E34
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #501158;
/* rgb */ color: rgb(80, 17, 88);
/* oklch */ color: oklch(32.1% 0.129 322.9);
Tailwind
colors: {
  custom: {
    50: '#845787',
    500: '#501158',
    950: '#000000',
  },
}
SCSS
$custom: #501158;
$custom-light: #845787;
$custom-dark: #000000;
JSON
{
  "hex": "#501158",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 293.239,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32104,
    "c": 0.12921,
    "h": 322.9
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#501158
secondary
#3E9134
accent
#EA3D51
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #501158

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

Preview Lab → · Contrast checker → · Palette generator →

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