#50188C#50188C

#50188C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.174 H 299.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#50188C
RGBrgb(80, 24, 140)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(42.9%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.49, 47.91, -52.96)
CIE-LCHlch(24.49, 71.42, 312.13°)
OKLaboklab(37.1% 0.0848 -0.1516)
OKLCHoklch(37.1% 0.174 299.2)
XYZxyz(8.3673, 4.2521, 25.1858)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50188C #548C18
analogous
#181A8C #50188C #8A188C
triadic
#50188C #8C5018 #188C50
tetradic
#50188C #8C181A #548C18 #188C8A
square
#50188C #8C181A #548C18 #188C8A
split-complementary
#50188C #8C8A18 #1A8C18
monochromatic
#140624 #320F58 #50188C #6E21C0 #8C40DE

Accessibility & contrast

On white

11.35
#50188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#50188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50188C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50188C#FFFFFF#000000##FFFFFF
##50188C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#413953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50188c;
/* rgb */ color: rgb(80, 24, 140);
/* oklch */ color: oklch(37.1% 0.174 299.2);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#50188c',
    950: '#000000',
  },
}
SCSS
$custom: #50188c;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#50188c",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 268.966,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37104,
    "c": 0.17369,
    "h": 299.2
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#50188C
secondary
#82BF41
accent
#ED3A97
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #50188C

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

Preview Lab → · Contrast checker → · Palette generator →

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