#501161#501161

#501161 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.138 H 317.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#501161
RGBrgb(80, 17, 97)
HSLhsl(287, 70%, 22%)
HSVhsv(287, 82%, 38%)
CMYKcmyk(17.5%, 82.5%, 0%, 62%)
CIE-LABlab(19.92, 40.49, -32.83)
CIE-LCHlch(19.92, 52.12, 320.96°)
OKLaboklab(32.77% 0.102 -0.0924)
OKLCHoklch(32.77% 0.138 317.8)
XYZxyz(5.6661, 2.9697, 11.5817)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501161 #226111
analogous
#281161 #501161 #61114A
triadic
#501161 #615011 #116150
tetradic
#501161 #612811 #226111 #114A61
square
#501161 #612811 #226111 #114A61
split-complementary
#501161 #4A6111 #116128
monochromatic
#15051A #25082D #501161 #7B1A95 #A623C9

Accessibility & contrast

On white

13.18
#501161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#501161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501161
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501161#FFFFFF#000000##FFFFFF
##5011611.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#14325F
Tritanopia (blue-blind)
#4F2339
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #501161;
/* rgb */ color: rgb(80, 17, 97);
/* oklch */ color: oklch(32.8% 0.138 317.8);
Tailwind
colors: {
  custom: {
    50: '#84588e',
    500: '#501161',
    950: '#000000',
  },
}
SCSS
$custom: #501161;
$custom-light: #84588e;
$custom-dark: #000000;
JSON
{
  "hex": "#501161",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 287.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32772,
    "c": 0.13762,
    "h": 317.8
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#501161
secondary
#4A9934
accent
#ED3B61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501161

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

Preview Lab → · Contrast checker → · Palette generator →

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