#50188F#50188F

#50188F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.177 H 298.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#50188F
RGBrgb(80, 24, 143)
HSLhsl(268, 71%, 33%)
HSVhsv(268, 83%, 56%)
CMYKcmyk(44.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.77, 48.66, -54.37)
CIE-LCHlch(24.77, 72.96, 311.83°)
OKLaboklab(37.39% 0.0838 -0.1557)
OKLCHoklch(37.39% 0.177 298.3)
XYZxyz(8.5915, 4.3418, 26.3667)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188F #578F18
analogous
#181C8F #50188F #8B188F
triadic
#50188F #8F5018 #188F50
tetradic
#50188F #8F181C #578F18 #188F8B
square
#50188F #8F181C #578F18 #188F8B
split-complementary
#50188F #8F8B18 #1C8F18
monochromatic
#150626 #330F5B #50188F #6D21C3 #8C42DF

Accessibility & contrast

On white

11.24
#50188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#50188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50188F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188F#FFFFFF#000000##FFFFFF
##50188F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#403A55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #50188f;
/* rgb */ color: rgb(80, 24, 143);
/* oklch */ color: oklch(37.4% 0.177 298.3);
Tailwind
colors: {
  custom: {
    50: '#885db1',
    500: '#50188f',
    950: '#000000',
  },
}
SCSS
$custom: #50188f;
$custom-light: #885db1;
$custom-dark: #000000;
JSON
{
  "hex": "#50188f",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 268.235,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37386,
    "c": 0.17682,
    "h": 298.3
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#50188F
secondary
#85C043
accent
#EE3A99
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #50188F

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

Preview Lab → · Contrast checker → · Palette generator →

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