#50178A#50178A

#50178A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.173 H 300.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#50178A
RGBrgb(80, 23, 138)
HSLhsl(270, 71%, 32%)
HSVhsv(270, 83%, 54%)
CMYKcmyk(42%, 83.3%, 0%, 45.9%)
CIE-LABlab(24.17, 47.79, -52.23)
CIE-LCHlch(24.17, 70.80, 312.46°)
OKLaboklab(36.83% 0.0862 -0.1494)
OKLCHoklch(36.83% 0.173 300)
XYZxyz(8.2010, 4.1532, 24.4094)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50178A #518A17
analogous
#17188A #50178A #8A178A
triadic
#50178A #8A5017 #178A50
tetradic
#50178A #8A1718 #518A17 #178A8A
square
#50178A #8A1718 #518A17 #178A8A
split-complementary
#50178A #8A8A17 #188A17
monochromatic
#130621 #320E56 #50178A #6E20BE #8D3DDF

Accessibility & contrast

On white

11.47
#50178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#50178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50178A
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50178A#FFFFFF#000000##FFFFFF
##50178A1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#423852
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #50178a;
/* rgb */ color: rgb(80, 23, 138);
/* oklch */ color: oklch(36.8% 0.173 300.0);
Tailwind
colors: {
  custom: {
    50: '#885cad',
    500: '#50178a',
    950: '#000000',
  },
}
SCSS
$custom: #50178a;
$custom-light: #885cad;
$custom-dark: #000000;
JSON
{
  "hex": "#50178a",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 269.739,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.17253,
    "h": 300
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#50178A
secondary
#7FBE3F
accent
#EE3A95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #50178A

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

Preview Lab → · Contrast checker → · Palette generator →

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