#50166A#50166A

#50166A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.141 H 312.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#50166A
RGBrgb(80, 22, 106)
HSLhsl(281, 66%, 25%)
HSVhsv(281, 79%, 42%)
CMYKcmyk(24.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(21.28, 40.53, -36.54)
CIE-LCHlch(21.28, 54.57, 317.97°)
OKLaboklab(33.95% 0.0956 -0.1033)
OKLCHoklch(33.95% 0.141 312.8)
XYZxyz(6.1962, 3.3201, 13.9473)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50166A #306A16
analogous
#26166A #50166A #6A165A
triadic
#50166A #6A5016 #166A50
tetradic
#50166A #6A2616 #306A16 #165A6A
square
#50166A #6A2616 #306A16 #165A6A
split-complementary
#50166A #5A6A16 #166A26
monochromatic
#130519 #2A0B37 #50166A #76219D #9D2BCF

Accessibility & contrast

On white

12.62
#50166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#50166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50166A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50166A#FFFFFF#000000##FFFFFF
##50166A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#0C3468
Tritanopia (blue-blind)
#4D293F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #50166a;
/* rgb */ color: rgb(80, 22, 106);
/* oklch */ color: oklch(34.0% 0.141 312.8);
Tailwind
colors: {
  custom: {
    50: '#855a95',
    500: '#50166a',
    950: '#000000',
  },
}
SCSS
$custom: #50166a;
$custom-light: #855a95;
$custom-dark: #000000;
JSON
{
  "hex": "#50166a",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 281.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33952,
    "c": 0.14078,
    "h": 312.8
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#50166A
secondary
#5BA03B
accent
#E93F74
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #50166A

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

Preview Lab → · Contrast checker → · Palette generator →

#50166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva