#50128C#50128C

#50128C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.179 H 299.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#50128C
RGBrgb(80, 18, 140)
HSLhsl(270, 77%, 31%)
HSVhsv(270, 87%, 55%)
CMYKcmyk(42.9%, 87.1%, 0%, 45.1%)
CIE-LABlab(23.77, 50.00, -54.13)
CIE-LCHlch(23.77, 73.69, 312.73°)
OKLaboklab(36.61% 0.0889 -0.1549)
OKLCHoklch(36.61% 0.179 299.8)
XYZxyz(8.2570, 4.0314, 25.1490)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50128C #4E8C12
analogous
#13128C #50128C #8C128B
triadic
#50128C #8C5012 #128C50
tetradic
#50128C #8C1312 #4E8C12 #128B8C
square
#50128C #8C1312 #4E8C12 #128B8C
split-complementary
#50128C #8B8C12 #128C13
monochromatic
#120420 #310B56 #50128C #6F19C2 #8E34E5

Accessibility & contrast

On white

11.63
#50128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#50128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50128C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50128C#FFFFFF#000000##FFFFFF
##50128C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#413752
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #50128c;
/* rgb */ color: rgb(80, 18, 140);
/* oklch */ color: oklch(36.6% 0.179 299.8);
Tailwind
colors: {
  custom: {
    50: '#885baf',
    500: '#50128c',
    950: '#000000',
  },
}
SCSS
$custom: #50128c;
$custom-light: #885baf;
$custom-dark: #000000;
JSON
{
  "hex": "#50128c",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 270.492,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36612,
    "c": 0.17865,
    "h": 299.8
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#50128C
secondary
#7CC039
accent
#F43492
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #50128C

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

Preview Lab → · Contrast checker → · Palette generator →

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