#50157B#50157B

#50157B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.159 H 305.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#50157B
RGBrgb(80, 21, 123)
HSLhsl(275, 71%, 28%)
HSVhsv(275, 83%, 48%)
CMYKcmyk(35%, 82.9%, 0%, 51.8%)
CIE-LABlab(22.56, 44.89, -45.42)
CIE-LCHlch(22.56, 63.86, 314.66°)
OKLaboklab(35.29% 0.0925 -0.1294)
OKLCHoklch(35.29% 0.159 305.6)
XYZxyz(7.1508, 3.6719, 19.0671)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50157B #407B15
analogous
#1D157B #50157B #7B1573
triadic
#50157B #7B5015 #157B50
tetradic
#50157B #7B1D15 #407B15 #15737B
square
#50157B #7B1D15 #407B15 #15737B
split-complementary
#50157B #737B15 #157B1D
monochromatic
#11041A #2E0C47 #50157B #721EAF #932FDB

Accessibility & contrast

On white

12.11
#50157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50157B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50157B#FFFFFF#000000##FFFFFF
##50157B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#483049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #50157b;
/* rgb */ color: rgb(80, 21, 123);
/* oklch */ color: oklch(35.3% 0.159 305.6);
Tailwind
colors: {
  custom: {
    50: '#865ba2',
    500: '#50157b',
    950: '#000000',
  },
}
SCSS
$custom: #50157b;
$custom-light: #865ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#50157b",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 274.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.15905,
    "h": 305.6
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#50157B
secondary
#6DB03B
accent
#EE3A86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50157B

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

Preview Lab → · Contrast checker → · Palette generator →

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