#50128F#50128F

#50128F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.182 H 298.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#50128F
RGBrgb(80, 18, 143)
HSLhsl(270, 78%, 32%)
HSVhsv(270, 87%, 56%)
CMYKcmyk(44.1%, 87.4%, 0%, 43.9%)
CIE-LABlab(24.07, 50.72, -55.52)
CIE-LCHlch(24.07, 75.20, 312.42°)
OKLaboklab(36.9% 0.0878 -0.159)
OKLCHoklch(36.9% 0.182 298.9)
XYZxyz(8.4812, 4.1211, 26.3299)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50128F #518F12
analogous
#12138F #50128F #8F128F
triadic
#50128F #8F5012 #128F50
tetradic
#50128F #8F1213 #518F12 #128F8F
square
#50128F #8F1213 #518F12 #128F8F
split-complementary
#50128F #8F8F12 #138F12
monochromatic
#130422 #320B59 #50128F #6E19C5 #8D36E6

Accessibility & contrast

On white

11.51
#50128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#50128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50128F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50128F#FFFFFF#000000##FFFFFF
##50128F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#403854
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #50128f;
/* rgb */ color: rgb(80, 18, 143);
/* oklch */ color: oklch(36.9% 0.182 298.9);
Tailwind
colors: {
  custom: {
    50: '#885bb1',
    500: '#50128f',
    950: '#000000',
  },
}
SCSS
$custom: #50128f;
$custom-light: #885bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#50128f",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 269.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36902,
    "c": 0.18162,
    "h": 298.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#50128F
secondary
#7FC33A
accent
#F43495
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50128F

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

Preview Lab → · Contrast checker → · Palette generator →

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