#50188B#50188B

#50188B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.173 H 299.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#50188B
RGBrgb(80, 24, 139)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(42.4%, 82.7%, 0%, 45.5%)
CIE-LABlab(24.39, 47.66, -52.49)
CIE-LCHlch(24.39, 70.90, 312.24°)
OKLaboklab(37.01% 0.0852 -0.1502)
OKLCHoklch(37.01% 0.173 299.6)
XYZxyz(8.2939, 4.2227, 24.7992)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188B #538B18
analogous
#181A8B #50188B #8A188B
triadic
#50188B #8B5018 #188B50
tetradic
#50188B #8B181A #538B18 #188B8A
square
#50188B #8B181A #538B18 #188B8A
split-complementary
#50188B #8B8A18 #1A8B18
monochromatic
#140623 #320F57 #50188B #6E21BF #8D3FDE

Accessibility & contrast

On white

11.38
#50188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#50188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50188B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188B#FFFFFF#000000##FFFFFF
##50188B1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#423952
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50188b;
/* rgb */ color: rgb(80, 24, 139);
/* oklch */ color: oklch(37.0% 0.173 299.6);
Tailwind
colors: {
  custom: {
    50: '#885dae',
    500: '#50188b',
    950: '#000000',
  },
}
SCSS
$custom: #50188b;
$custom-light: #885dae;
$custom-dark: #000000;
JSON
{
  "hex": "#50188b",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 269.217,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37011,
    "c": 0.17265,
    "h": 299.6
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#50188B
secondary
#81BE40
accent
#ED3A96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50188B

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

Preview Lab → · Contrast checker → · Palette generator →

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