#50168B#50168B

#50168B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.174 H 299.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#50168B
RGBrgb(80, 22, 139)
HSLhsl(270, 73%, 32%)
HSVhsv(270, 84%, 55%)
CMYKcmyk(42.4%, 84.2%, 0%, 45.5%)
CIE-LABlab(24.14, 48.40, -52.91)
CIE-LCHlch(24.14, 71.71, 312.45°)
OKLaboklab(36.83% 0.0866 -0.1514)
OKLCHoklch(36.83% 0.174 299.8)
XYZxyz(8.2542, 4.1433, 24.7859)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50168B #518B16
analogous
#16168B #50168B #8B168B
triadic
#50168B #8B5016 #168B50
tetradic
#50168B #8B1616 #518B16 #168B8B
square
#50168B #8B1616 #518B16 #168B8B
split-complementary
#50168B #8B8B16 #168B16
monochromatic
#130521 #320E56 #50168B #6E1EC0 #8D3BE0

Accessibility & contrast

On white

11.48
#50168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50168B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50168B#FFFFFF#000000##FFFFFF
##50168B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#423852
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #50168b;
/* rgb */ color: rgb(80, 22, 139);
/* oklch */ color: oklch(36.8% 0.174 299.8);
Tailwind
colors: {
  custom: {
    50: '#885cae',
    500: '#50168b',
    950: '#000000',
  },
}
SCSS
$custom: #50168b;
$custom-light: #885cae;
$custom-dark: #000000;
JSON
{
  "hex": "#50168b",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 269.744,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.17443,
    "h": 299.8
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#50168B
secondary
#7FBF3E
accent
#EF3895
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #50168B

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

Preview Lab → · Contrast checker → · Palette generator →

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