#50176A#50176A

#50176A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.140 H 312.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#50176A
RGBrgb(80, 23, 106)
HSLhsl(281, 64%, 25%)
HSVhsv(281, 78%, 42%)
CMYKcmyk(24.5%, 78.3%, 0%, 58.4%)
CIE-LABlab(21.43, 40.12, -36.30)
CIE-LCHlch(21.43, 54.10, 317.86°)
OKLaboklab(34.05% 0.0946 -0.1026)
OKLCHoklch(34.05% 0.14 312.7)
XYZxyz(6.2157, 3.3591, 13.9538)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50176A #316A17
analogous
#27176A #50176A #6A175A
triadic
#50176A #6A5017 #176A50
tetradic
#50176A #6A2717 #316A17 #175A6A
square
#50176A #6A2717 #316A17 #175A6A
split-complementary
#50176A #5A6A17 #176A27
monochromatic
#130519 #2A0C38 #50176A #76229C #9C2DCF

Accessibility & contrast

On white

12.56
#50176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#50176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50176A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50176A#FFFFFF#000000##FFFFFF
##50176A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#0D3568
Tritanopia (blue-blind)
#4D2A3F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #50176a;
/* rgb */ color: rgb(80, 23, 106);
/* oklch */ color: oklch(34.1% 0.140 312.7);
Tailwind
colors: {
  custom: {
    50: '#845b95',
    500: '#50176a',
    950: '#000000',
  },
}
SCSS
$custom: #50176a;
$custom-light: #845b95;
$custom-dark: #000000;
JSON
{
  "hex": "#50176a",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 281.205,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.13958,
    "h": 312.7
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#50176A
secondary
#5CA03D
accent
#E74075
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #50176A

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

Preview Lab → · Contrast checker → · Palette generator →

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