#50188A#50188A

#50188A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.172 H 299.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#50188A
RGBrgb(80, 24, 138)
HSLhsl(269, 70%, 32%)
HSVhsv(269, 83%, 54%)
CMYKcmyk(42%, 82.6%, 0%, 45.9%)
CIE-LABlab(24.30, 47.41, -52.02)
CIE-LCHlch(24.30, 70.39, 312.34°)
OKLaboklab(36.92% 0.0855 -0.1488)
OKLCHoklch(36.92% 0.172 299.9)
XYZxyz(8.2212, 4.1936, 24.4161)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188A #528A18
analogous
#18198A #50188A #89188A
triadic
#50188A #8A5018 #188A50
tetradic
#50188A #8A1819 #528A18 #188A89
square
#50188A #8A1819 #528A18 #188A89
split-complementary
#50188A #8A8918 #198A18
monochromatic
#140622 #320F56 #50188A #6E21BE #8D3FDE

Accessibility & contrast

On white

11.42
#50188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50188A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188A#FFFFFF#000000##FFFFFF
##50188A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#423852
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50188a;
/* rgb */ color: rgb(80, 24, 138);
/* oklch */ color: oklch(36.9% 0.172 299.9);
Tailwind
colors: {
  custom: {
    50: '#875dad',
    500: '#50188a',
    950: '#000000',
  },
}
SCSS
$custom: #50188a;
$custom-light: #875dad;
$custom-dark: #000000;
JSON
{
  "hex": "#50188a",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 269.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36918,
    "c": 0.17162,
    "h": 299.9
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#50188A
secondary
#80BD40
accent
#ED3B95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50188A

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

Preview Lab → · Contrast checker → · Palette generator →

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