#50177F#50177F

#50177F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.161 H 303.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#50177F
RGBrgb(80, 23, 127)
HSLhsl(273, 69%, 29%)
HSVhsv(273, 82%, 50%)
CMYKcmyk(37%, 81.9%, 0%, 50.2%)
CIE-LABlab(23.17, 45.09, -46.95)
CIE-LCHlch(23.17, 65.10, 313.84°)
OKLaboklab(35.82% 0.0897 -0.1339)
OKLCHoklch(35.82% 0.161 303.8)
XYZxyz(7.4445, 3.8506, 20.4256)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50177F #467F17
analogous
#1C177F #50177F #7F177A
triadic
#50177F #7F5017 #177F50
tetradic
#50177F #7F1C17 #467F17 #177A7F
square
#50177F #7F1C17 #467F17 #177A7F
split-complementary
#50177F #7A7F17 #177F1C
monochromatic
#10051A #2F0E4B #50177F #7120B3 #9036DB

Accessibility & contrast

On white

11.86
#50177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#50177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50177F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50177F#FFFFFF#000000##FFFFFF
##50177F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50177f;
/* rgb */ color: rgb(80, 23, 127);
/* oklch */ color: oklch(35.8% 0.161 303.8);
Tailwind
colors: {
  custom: {
    50: '#865ca5',
    500: '#50177f',
    950: '#000000',
  },
}
SCSS
$custom: #50177f;
$custom-light: #865ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#50177f",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 272.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.16118,
    "h": 303.8
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#50177F
secondary
#73B43E
accent
#EC3C8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50177F

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

Preview Lab → · Contrast checker → · Palette generator →

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