#501168#501168

#501168 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.144 H 314.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#501168
RGBrgb(80, 17, 104)
HSLhsl(283, 72%, 24%)
HSVhsv(283, 84%, 41%)
CMYKcmyk(23.1%, 83.7%, 0%, 59.2%)
CIE-LABlab(20.46, 41.99, -36.56)
CIE-LCHlch(20.46, 55.67, 318.96°)
OKLaboklab(33.32% 0.1007 -0.1033)
OKLCHoklch(33.32% 0.144 314.3)
XYZxyz(6.0070, 3.1061, 13.3771)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501168 #296811
analogous
#241168 #501168 #681154
triadic
#501168 #685011 #116850
tetradic
#501168 #682411 #296811 #115468
square
#501168 #682411 #296811 #115468
split-complementary
#501168 #546811 #116824
monochromatic
#14041A #280833 #501168 #781A9D #A122D1

Accessibility & contrast

On white

12.95
#501168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#501168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501168
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501168#FFFFFF#000000##FFFFFF
##5011681.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#093366
Tritanopia (blue-blind)
#4E263D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #501168;
/* rgb */ color: rgb(80, 17, 104);
/* oklch */ color: oklch(33.3% 0.144 314.3);
Tailwind
colors: {
  custom: {
    50: '#855894',
    500: '#501168',
    950: '#000000',
  },
}
SCSS
$custom: #501168;
$custom-light: #855894;
$custom-dark: #000000;
JSON
{
  "hex": "#501168",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 283.448,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33325,
    "c": 0.1443,
    "h": 314.3
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#501168
secondary
#52A035
accent
#EF396B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #501168

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

Preview Lab → · Contrast checker → · Palette generator →

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