#50178D#50178D

#50178D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.176 H 299.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#50178D
RGBrgb(80, 23, 141)
HSLhsl(269, 72%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(43.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(24.45, 48.53, -53.64)
CIE-LCHlch(24.45, 72.34, 312.14°)
OKLaboklab(37.11% 0.0852 -0.1536)
OKLCHoklch(37.11% 0.176 299)
XYZxyz(8.4211, 4.2412, 25.5691)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50178D #548D17
analogous
#17198D #50178D #8B178D
triadic
#50178D #8D5017 #178D50
tetradic
#50178D #8D1719 #548D17 #178D8B
square
#50178D #8D1719 #548D17 #178D8B
split-complementary
#50178D #8D8B17 #198D17
monochromatic
#140624 #320E58 #50178D #6E20C2 #8C3FE0

Accessibility & contrast

On white

11.36
#50178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#50178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50178D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50178D#FFFFFF#000000##FFFFFF
##50178D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#413953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50178d;
/* rgb */ color: rgb(80, 23, 141);
/* oklch */ color: oklch(37.1% 0.176 299.0);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#50178d',
    950: '#000000',
  },
}
SCSS
$custom: #50178d;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#50178d",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 268.983,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.17562,
    "h": 299
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#50178D
secondary
#82C040
accent
#EF3997
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50178D

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

Preview Lab → · Contrast checker → · Palette generator →

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