#50157F#50157F

#50157F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.163 H 304.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#50157F
RGBrgb(80, 21, 127)
HSLhsl(273, 72%, 29%)
HSVhsv(273, 83%, 50%)
CMYKcmyk(37%, 83.5%, 0%, 50.2%)
CIE-LABlab(22.91, 45.85, -47.38)
CIE-LCHlch(22.91, 65.93, 314.06°)
OKLaboklab(35.64% 0.0913 -0.1352)
OKLCHoklch(35.64% 0.163 304)
XYZxyz(7.4063, 3.7741, 20.4129)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50157F #447F15
analogous
#1B157F #50157F #7F1579
triadic
#50157F #7F5015 #157F50
tetradic
#50157F #7F1B15 #447F15 #15797F
square
#50157F #7F1B15 #447F15 #15797F
split-complementary
#50157F #797F15 #157F1B
monochromatic
#11041A #2F0C4A #50157F #711EB4 #9131DD

Accessibility & contrast

On white

11.97
#50157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#50157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50157F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50157F#FFFFFF#000000##FFFFFF
##50157F1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#47324B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #50157f;
/* rgb */ color: rgb(80, 21, 127);
/* oklch */ color: oklch(35.6% 0.163 304.0);
Tailwind
colors: {
  custom: {
    50: '#865ba5',
    500: '#50157f',
    950: '#000000',
  },
}
SCSS
$custom: #50157f;
$custom-light: #865ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#50157f",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 273.396,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35642,
    "c": 0.16311,
    "h": 304
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#50157F
secondary
#71B43C
accent
#EE398A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50157F

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

Preview Lab → · Contrast checker → · Palette generator →

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