#50178C#50178C

#50178C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 299.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#50178C
RGBrgb(80, 23, 140)
HSLhsl(269, 72%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(42.9%, 83.6%, 0%, 45.1%)
CIE-LABlab(24.36, 48.29, -53.18)
CIE-LCHlch(24.36, 71.83, 312.24°)
OKLaboklab(37.02% 0.0856 -0.1522)
OKLCHoklch(37.02% 0.175 299.3)
XYZxyz(8.3471, 4.2116, 25.1790)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50178C #538C17
analogous
#17188C #50178C #8B178C
triadic
#50178C #8C5017 #178C50
tetradic
#50178C #8C1718 #538C17 #178C8B
square
#50178C #8C1718 #538C17 #178C8B
split-complementary
#50178C #8C8B17 #188C17
monochromatic
#140623 #320E57 #50178C #6E20C1 #8D3EDF

Accessibility & contrast

On white

11.40
#50178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#50178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50178C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50178C#FFFFFF#000000##FFFFFF
##50178C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50178c;
/* rgb */ color: rgb(80, 23, 140);
/* oklch */ color: oklch(37.0% 0.175 299.3);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#50178c',
    950: '#000000',
  },
}
SCSS
$custom: #50178c;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#50178c",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 269.231,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.17459,
    "h": 299.3
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#50178C
secondary
#81BF3F
accent
#EF3996
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50178C

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

Preview Lab → · Contrast checker → · Palette generator →

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