#50166F#50166F

#50166F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.146 H 310.5°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#50166F
RGBrgb(80, 22, 111)
HSLhsl(279, 67%, 26%)
HSVhsv(279, 80%, 44%)
CMYKcmyk(27.9%, 80.2%, 0%, 56.5%)
CIE-LABlab(21.68, 41.68, -39.14)
CIE-LCHlch(21.68, 57.18, 316.80°)
OKLaboklab(34.36% 0.0947 -0.111)
OKLCHoklch(34.36% 0.146 310.5)
XYZxyz(6.4639, 3.4271, 15.3568)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50166F #356F16
analogous
#23166F #50166F #6F1661
triadic
#50166F #6F5016 #166F50
tetradic
#50166F #6F2316 #356F16 #16616F
square
#50166F #6F2316 #356F16 #16616F
split-complementary
#50166F #616F16 #166F23
monochromatic
#12051A #2B0C3C #50166F #7520A2 #9A2BD5

Accessibility & contrast

On white

12.46
#50166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#50166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50166F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50166F#FFFFFF#000000##FFFFFF
##50166F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#4C2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #50166f;
/* rgb */ color: rgb(80, 22, 111);
/* oklch */ color: oklch(34.4% 0.146 310.5);
Tailwind
colors: {
  custom: {
    50: '#855a99',
    500: '#50166f',
    950: '#000000',
  },
}
SCSS
$custom: #50166f;
$custom-light: #855a99;
$custom-dark: #000000;
JSON
{
  "hex": "#50166f",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 279.101,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34356,
    "c": 0.14584,
    "h": 310.5
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#50166F
secondary
#60A53C
accent
#EA3E7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #50166F

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

Preview Lab → · Contrast checker → · Palette generator →

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