#50148E#50148E

#50148E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.179 H 299.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#50148E
RGBrgb(80, 20, 142)
HSLhsl(270, 75%, 32%)
HSVhsv(270, 86%, 56%)
CMYKcmyk(43.7%, 85.9%, 0%, 44.3%)
CIE-LABlab(24.19, 49.84, -54.70)
CIE-LCHlch(24.19, 74.00, 312.34°)
OKLaboklab(36.96% 0.0869 -0.1566)
OKLCHoklch(36.96% 0.179 299)
XYZxyz(8.4397, 4.1587, 25.9440)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50148E #528E14
analogous
#14158E #50148E #8D148E
triadic
#50148E #8E5014 #148E50
tetradic
#50148E #8E1415 #528E14 #148E8D
square
#50148E #8E1415 #528E14 #148E8D
split-complementary
#50148E #8E8D14 #158E14
monochromatic
#140523 #320C58 #50148E #6E1CC4 #8D39E3

Accessibility & contrast

On white

11.46
#50148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#50148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50148E
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50148E#FFFFFF#000000##FFFFFF
##50148E1.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)
#003991
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#403853
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #50148e;
/* rgb */ color: rgb(80, 20, 142);
/* oklch */ color: oklch(37.0% 0.179 299.0);
Tailwind
colors: {
  custom: {
    50: '#885cb0',
    500: '#50148e',
    950: '#000000',
  },
}
SCSS
$custom: #50148e;
$custom-light: #885cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#50148e",
  "rgb": {
    "r": 80,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 269.508,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36956,
    "c": 0.17912,
    "h": 299
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#50148E
secondary
#80C23C
accent
#F23695
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #50148E

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

Preview Lab → · Contrast checker → · Palette generator →

#50148E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva