#50157A#50157A

#50157A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.158 H 306.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#50157A
RGBrgb(80, 21, 122)
HSLhsl(275, 71%, 28%)
HSVhsv(275, 83%, 48%)
CMYKcmyk(34.4%, 82.8%, 0%, 52.2%)
CIE-LABlab(22.47, 44.65, -44.92)
CIE-LCHlch(22.47, 63.34, 314.83°)
OKLaboklab(35.2% 0.0928 -0.1279)
OKLCHoklch(35.2% 0.158 306)
XYZxyz(7.0885, 3.6470, 18.7391)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50157A #3F7A15
analogous
#1E157A #50157A #7A1571
triadic
#50157A #7A5015 #157A50
tetradic
#50157A #7A1E15 #3F7A15 #15717A
square
#50157A #7A1E15 #3F7A15 #15717A
split-complementary
#50157A #717A15 #157A1E
monochromatic
#11041A #2E0C46 #50157A #721EAE #932EDB

Accessibility & contrast

On white

12.14
#50157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#50157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50157A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50157A#FFFFFF#000000##FFFFFF
##50157A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#483048
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #50157a;
/* rgb */ color: rgb(80, 21, 122);
/* oklch */ color: oklch(35.2% 0.158 306.0);
Tailwind
colors: {
  custom: {
    50: '#865ba1',
    500: '#50157a',
    950: '#000000',
  },
}
SCSS
$custom: #50157a;
$custom-light: #865ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#50157a",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 275.05,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35198,
    "c": 0.15805,
    "h": 306
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#50157A
secondary
#6CAF3B
accent
#ED3A85
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50157A

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

Preview Lab → · Contrast checker → · Palette generator →

#50157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva