#50188E#50188E

#50188E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.176 H 298.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#50188E
RGBrgb(80, 24, 142)
HSLhsl(268, 71%, 33%)
HSVhsv(268, 83%, 56%)
CMYKcmyk(43.7%, 83.1%, 0%, 44.3%)
CIE-LABlab(24.68, 48.41, -53.90)
CIE-LCHlch(24.68, 72.45, 311.93°)
OKLaboklab(37.29% 0.0842 -0.1543)
OKLCHoklch(37.29% 0.176 298.6)
XYZxyz(8.5161, 4.3116, 25.9695)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188E #568E18
analogous
#181B8E #50188E #8B188E
triadic
#50188E #8E5018 #188E50
tetradic
#50188E #8E181B #568E18 #188E8B
square
#50188E #8E181B #568E18 #188E8B
split-complementary
#50188E #8E8B18 #1B8E18
monochromatic
#150625 #330F5A #50188E #6D21C2 #8C41DF

Accessibility & contrast

On white

11.28
#50188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50188E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188E#FFFFFF#000000##FFFFFF
##50188E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#403A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #50188e;
/* rgb */ color: rgb(80, 24, 142);
/* oklch */ color: oklch(37.3% 0.176 298.6);
Tailwind
colors: {
  custom: {
    50: '#885db0',
    500: '#50188e',
    950: '#000000',
  },
}
SCSS
$custom: #50188e;
$custom-light: #885db0;
$custom-dark: #000000;
JSON
{
  "hex": "#50188e",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 268.475,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37292,
    "c": 0.17578,
    "h": 298.6
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#50188E
secondary
#84C042
accent
#EE3A98
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #50188E

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

Preview Lab → · Contrast checker → · Palette generator →

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