#50158F#50158F

#50158F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.179 H 298.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#50158F
RGBrgb(80, 21, 143)
HSLhsl(269, 74%, 32%)
HSVhsv(269, 85%, 56%)
CMYKcmyk(44.1%, 85.3%, 0%, 43.9%)
CIE-LABlab(24.40, 49.74, -54.97)
CIE-LCHlch(24.40, 74.14, 312.14°)
OKLaboklab(37.13% 0.0859 -0.1574)
OKLCHoklch(37.13% 0.179 298.6)
XYZxyz(8.5331, 4.2248, 26.3472)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50158F #548F15
analogous
#15178F #50158F #8D158F
triadic
#50158F #8F5015 #158F50
tetradic
#50158F #8F1517 #548F15 #158F8D
square
#50158F #8F1517 #548F15 #158F8D
split-complementary
#50158F #8F8D15 #178F15
monochromatic
#140524 #320D5A #50158F #6E1DC4 #8C3CE2

Accessibility & contrast

On white

11.38
#50158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50158F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50158F#FFFFFF#000000##FFFFFF
##50158F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50158f;
/* rgb */ color: rgb(80, 21, 143);
/* oklch */ color: oklch(37.1% 0.179 298.6);
Tailwind
colors: {
  custom: {
    50: '#885cb1',
    500: '#50158f',
    950: '#000000',
  },
}
SCSS
$custom: #50158f;
$custom-light: #885cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#50158f",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 269.016,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37131,
    "c": 0.17934,
    "h": 298.6
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#50158F
secondary
#82C23E
accent
#F13797
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50158F

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

Preview Lab → · Contrast checker → · Palette generator →

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