#501162#501162

#501162 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.139 H 317.3°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#501162
RGBrgb(80, 17, 98)
HSLhsl(287, 70%, 23%)
HSVhsv(287, 83%, 38%)
CMYKcmyk(18.4%, 82.7%, 0%, 61.6%)
CIE-LABlab(20.00, 40.70, -33.37)
CIE-LCHlch(20.00, 52.63, 320.65°)
OKLaboklab(32.85% 0.1019 -0.094)
OKLCHoklch(32.85% 0.139 317.3)
XYZxyz(5.7130, 2.9885, 11.8288)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501162 #236211
analogous
#281162 #501162 #62114B
triadic
#501162 #625011 #116250
tetradic
#501162 #622811 #236211 #114B62
square
#501162 #622811 #236211 #114B62
split-complementary
#501162 #4B6211 #116228
monochromatic
#15051A #25082E #501162 #7B1A96 #A523CA

Accessibility & contrast

On white

13.14
#501162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#501162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501162
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501162#FFFFFF#000000##FFFFFF
##5011621.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#133260
Tritanopia (blue-blind)
#4F2339
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #501162;
/* rgb */ color: rgb(80, 17, 98);
/* oklch */ color: oklch(32.9% 0.139 317.3);
Tailwind
colors: {
  custom: {
    50: '#84588f',
    500: '#501162',
    950: '#000000',
  },
}
SCSS
$custom: #501162;
$custom-light: #84588f;
$custom-dark: #000000;
JSON
{
  "hex": "#501162",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 286.667,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.13857,
    "h": 317.3
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#501162
secondary
#4B9A34
accent
#ED3B62
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501162

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

Preview Lab → · Contrast checker → · Palette generator →

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