#50168F#50168F

#50168F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.179 H 298.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#50168F
RGBrgb(80, 22, 143)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 85%, 56%)
CMYKcmyk(44.1%, 84.6%, 0%, 43.9%)
CIE-LABlab(24.52, 49.39, -54.78)
CIE-LCHlch(24.52, 73.76, 312.04°)
OKLaboklab(37.21% 0.0852 -0.1569)
OKLCHoklch(37.21% 0.179 298.5)
XYZxyz(8.5518, 4.2623, 26.3534)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50168F #558F16
analogous
#16198F #50168F #8C168F
triadic
#50168F #8F5016 #168F50
tetradic
#50168F #8F1619 #558F16 #168F8C
square
#50168F #8F1619 #558F16 #168F8C
split-complementary
#50168F #8F8C16 #198F16
monochromatic
#150625 #320E5A #50168F #6E1EC4 #8C3EE1

Accessibility & contrast

On white

11.34
#50168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#50168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50168F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50168F#FFFFFF#000000##FFFFFF
##50168F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#403A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50168f;
/* rgb */ color: rgb(80, 22, 143);
/* oklch */ color: oklch(37.2% 0.179 298.5);
Tailwind
colors: {
  custom: {
    50: '#885cb1',
    500: '#50168f',
    950: '#000000',
  },
}
SCSS
$custom: #50168f;
$custom-light: #885cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#50168f",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 268.76,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37213,
    "c": 0.17852,
    "h": 298.5
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#50168F
secondary
#83C13F
accent
#F03898
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50168F

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

Preview Lab → · Contrast checker → · Palette generator →

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