#50188D#50188D

#50188D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.175 H 298.9°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#50188D
RGBrgb(80, 24, 141)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(43.3%, 83%, 0%, 44.7%)
CIE-LABlab(24.58, 48.16, -53.43)
CIE-LCHlch(24.58, 71.93, 312.03°)
OKLaboklab(37.2% 0.0845 -0.1529)
OKLCHoklch(37.2% 0.175 298.9)
XYZxyz(8.4414, 4.2817, 25.5758)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188D #558D18
analogous
#181B8D #50188D #8B188D
triadic
#50188D #8D5018 #188D50
tetradic
#50188D #8D181B #558D18 #188D8B
square
#50188D #8D181B #558D18 #188D8B
split-complementary
#50188D #8D8B18 #1B8D18
monochromatic
#150624 #320F59 #50188D #6E21C1 #8C41DF

Accessibility & contrast

On white

11.31
#50188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#50188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50188D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188D#FFFFFF#000000##FFFFFF
##50188D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50188d;
/* rgb */ color: rgb(80, 24, 141);
/* oklch */ color: oklch(37.2% 0.175 298.9);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#50188d',
    950: '#000000',
  },
}
SCSS
$custom: #50188d;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#50188d",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 268.718,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37198,
    "c": 0.17474,
    "h": 298.9
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#50188D
secondary
#83BF42
accent
#EE3A98
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50188D

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

Preview Lab → · Contrast checker → · Palette generator →

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