#50178F#50178F

#50178F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.178 H 298.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#50178F
RGBrgb(80, 23, 143)
HSLhsl(269, 72%, 33%)
HSVhsv(269, 84%, 56%)
CMYKcmyk(44.1%, 83.9%, 0%, 43.9%)
CIE-LABlab(24.64, 49.03, -54.57)
CIE-LCHlch(24.64, 73.37, 311.94°)
OKLaboklab(37.3% 0.0845 -0.1563)
OKLCHoklch(37.3% 0.178 298.4)
XYZxyz(8.5713, 4.3013, 26.3599)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50178F #568F17
analogous
#171A8F #50178F #8C178F
triadic
#50178F #8F5017 #178F50
tetradic
#50178F #8F171A #568F17 #178F8C
square
#50178F #8F171A #568F17 #178F8C
split-complementary
#50178F #8F8C17 #1A8F17
monochromatic
#150626 #330F5A #50178F #6D1FC4 #8C40E0

Accessibility & contrast

On white

11.29
#50178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#50178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50178F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50178F#FFFFFF#000000##FFFFFF
##50178F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#403A55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50178f;
/* rgb */ color: rgb(80, 23, 143);
/* oklch */ color: oklch(37.3% 0.178 298.4);
Tailwind
colors: {
  custom: {
    50: '#885db1',
    500: '#50178f',
    950: '#000000',
  },
}
SCSS
$custom: #50178f;
$custom-light: #885db1;
$custom-dark: #000000;
JSON
{
  "hex": "#50178f",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 268.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37298,
    "c": 0.17768,
    "h": 298.4
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#50178F
secondary
#84C141
accent
#EF3998
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #50178F

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

Preview Lab → · Contrast checker → · Palette generator →

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