#50186F#50186F

#50186F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.144 H 310.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#50186F
RGBrgb(80, 24, 111)
HSLhsl(279, 64%, 26%)
HSVhsv(279, 78%, 44%)
CMYKcmyk(27.9%, 78.4%, 0%, 56.5%)
CIE-LABlab(21.97, 40.85, -38.67)
CIE-LCHlch(21.97, 56.25, 316.57°)
OKLaboklab(34.56% 0.0927 -0.1096)
OKLCHoklch(34.56% 0.144 310.2)
XYZxyz(6.5036, 3.5066, 15.3701)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50186F #376F18
analogous
#25186F #50186F #6F1863
triadic
#50186F #6F5018 #186F50
tetradic
#50186F #6F2518 #376F18 #18636F
square
#50186F #6F2518 #376F18 #18636F
split-complementary
#50186F #636F18 #186F25
monochromatic
#120519 #2C0D3D #50186F #7423A1 #982FD2

Accessibility & contrast

On white

12.34
#50186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#50186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50186F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50186F#FFFFFF#000000##FFFFFF
##50186F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#04356D
Tritanopia (blue-blind)
#4C2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #50186f;
/* rgb */ color: rgb(80, 24, 111);
/* oklch */ color: oklch(34.6% 0.144 310.2);
Tailwind
colors: {
  custom: {
    50: '#855b99',
    500: '#50186f',
    950: '#000000',
  },
}
SCSS
$custom: #50186f;
$custom-light: #855b99;
$custom-dark: #000000;
JSON
{
  "hex": "#50186f",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 278.621,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3456,
    "c": 0.14353,
    "h": 310.2
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#50186F
secondary
#63A53E
accent
#E7407C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #50186F

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

Preview Lab → · Contrast checker → · Palette generator →

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