#50168C#50168C

#50168C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.175 H 299.5°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#50168C
RGBrgb(80, 22, 140)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(42.9%, 84.3%, 0%, 45.1%)
CIE-LABlab(24.23, 48.65, -53.38)
CIE-LCHlch(24.23, 72.22, 312.35°)
OKLaboklab(36.93% 0.0863 -0.1528)
OKLCHoklch(36.93% 0.175 299.5)
XYZxyz(8.3276, 4.1726, 25.1725)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50168C #528C16
analogous
#16178C #50168C #8B168C
triadic
#50168C #8C5016 #168C50
tetradic
#50168C #8C1617 #528C16 #168C8B
square
#50168C #8C1617 #528C16 #168C8B
split-complementary
#50168C #8C8B16 #178C16
monochromatic
#140522 #320E57 #50168C #6E1EC1 #8D3CE0

Accessibility & contrast

On white

11.45
#50168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#50168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50168C
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50168C#FFFFFF#000000##FFFFFF
##50168C1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#413853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50168c;
/* rgb */ color: rgb(80, 22, 140);
/* oklch */ color: oklch(36.9% 0.175 299.5);
Tailwind
colors: {
  custom: {
    50: '#885caf',
    500: '#50168c',
    950: '#000000',
  },
}
SCSS
$custom: #50168c;
$custom-light: #885caf;
$custom-dark: #000000;
JSON
{
  "hex": "#50168c",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 269.492,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36928,
    "c": 0.17546,
    "h": 299.5
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#50168C
secondary
#80C03E
accent
#F03895
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #50168C

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

Preview Lab → · Contrast checker → · Palette generator →

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