#501157#501157

#501157 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.128 H 323.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#501157
RGBrgb(80, 17, 87)
HSLhsl(294, 67%, 20%)
HSVhsv(294, 80%, 34%)
CMYKcmyk(8%, 80.5%, 0%, 65.9%)
CIE-LABlab(19.20, 38.43, -27.32)
CIE-LCHlch(19.20, 47.15, 324.59°)
OKLaboklab(32.03% 0.1032 -0.0762)
OKLCHoklch(32.03% 0.128 323.5)
XYZxyz(5.2289, 2.7948, 9.2790)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501157 #185711
analogous
#2D1157 #501157 #57113B
triadic
#501157 #575011 #115750
tetradic
#501157 #572D11 #185711 #113B57
square
#501157 #572D11 #185711 #113B57
split-complementary
#501157 #3B5711 #11572D
monochromatic
#18051A #210724 #501157 #7F1B8A #AE25BD

Accessibility & contrast

On white

13.47
#501157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501157
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501157#FFFFFF#000000##FFFFFF
##5011571.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1D3155
Tritanopia (blue-blind)
#511E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #501157;
/* rgb */ color: rgb(80, 17, 87);
/* oklch */ color: oklch(32.0% 0.128 323.5);
Tailwind
colors: {
  custom: {
    50: '#845787',
    500: '#501157',
    950: '#000000',
  },
}
SCSS
$custom: #501157;
$custom-light: #845787;
$custom-dark: #000000;
JSON
{
  "hex": "#501157",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 294,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32033,
    "c": 0.12828,
    "h": 323.5
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#501157
secondary
#3D9034
accent
#EA3E4F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #501157

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

Preview Lab → · Contrast checker → · Palette generator →

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