#50158D#50158D

#50158D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.177 H 299.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#50158D
RGBrgb(80, 21, 141)
HSLhsl(270, 74%, 32%)
HSVhsv(270, 85%, 55%)
CMYKcmyk(43.3%, 85.1%, 0%, 44.7%)
CIE-LABlab(24.21, 49.25, -54.04)
CIE-LCHlch(24.21, 73.12, 312.34°)
OKLaboklab(36.94% 0.0866 -0.1547)
OKLCHoklch(36.94% 0.177 299.2)
XYZxyz(8.3829, 4.1648, 25.5564)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50158D #528D15
analogous
#15168D #50158D #8C158D
triadic
#50158D #8D5015 #158D50
tetradic
#50158D #8D1516 #528D15 #158D8C
square
#50158D #8D1516 #528D15 #158D8C
split-complementary
#50158D #8D8C15 #168D15
monochromatic
#140522 #320D58 #50158D #6E1DC2 #8D3BE2

Accessibility & contrast

On white

11.46
#50158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#50158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50158D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50158D#FFFFFF#000000##FFFFFF
##50158D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#413853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #50158d;
/* rgb */ color: rgb(80, 21, 141);
/* oklch */ color: oklch(36.9% 0.177 299.2);
Tailwind
colors: {
  custom: {
    50: '#885caf',
    500: '#50158d',
    950: '#000000',
  },
}
SCSS
$custom: #50158d;
$custom-light: #885caf;
$custom-dark: #000000;
JSON
{
  "hex": "#50158d",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 269.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.1773,
    "h": 299.2
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#50158D
secondary
#80C13D
accent
#F13795
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50158D

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

Preview Lab → · Contrast checker → · Palette generator →

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