#50168D#50168D

#50168D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.176 H 299.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#50168D
RGBrgb(80, 22, 141)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(43.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(24.33, 48.90, -53.85)
CIE-LCHlch(24.33, 72.74, 312.24°)
OKLaboklab(37.02% 0.0859 -0.1541)
OKLCHoklch(37.02% 0.176 299.1)
XYZxyz(8.4017, 4.2023, 25.5626)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50168D #538D16
analogous
#16178D #50168D #8C168D
triadic
#50168D #8D5016 #168D50
tetradic
#50168D #8D1617 #538D16 #168D8C
square
#50168D #8D1617 #538D16 #168D8C
split-complementary
#50168D #8D8C16 #178D16
monochromatic
#140523 #320E58 #50168D #6E1EC2 #8D3DE1

Accessibility & contrast

On white

11.41
#50168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#50168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50168D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50168D#FFFFFF#000000##FFFFFF
##50168D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50168d;
/* rgb */ color: rgb(80, 22, 141);
/* oklch */ color: oklch(37.0% 0.176 299.1);
Tailwind
colors: {
  custom: {
    50: '#885caf',
    500: '#50168d',
    950: '#000000',
  },
}
SCSS
$custom: #50168d;
$custom-light: #885caf;
$custom-dark: #000000;
JSON
{
  "hex": "#50168d",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 269.244,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37023,
    "c": 0.17647,
    "h": 299.1
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#50168D
secondary
#81C13E
accent
#F03896
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50168D

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

Preview Lab → · Contrast checker → · Palette generator →

#50168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva