#50174E#50174E

#50174E is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.112 H 329.3°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#50174E
RGBrgb(80, 23, 78)
HSLhsl(302, 55%, 20%)
HSVhsv(302, 71%, 31%)
CMYKcmyk(0%, 71.2%, 2.5%, 68.6%)
CIE-LABlab(19.51, 34.16, -20.75)
CIE-LCHlch(19.51, 39.97, 328.72°)
OKLaboklab(32.07% 0.0962 -0.0572)
OKLCHoklch(32.07% 0.112 329.3)
XYZxyz(4.9898, 2.8687, 7.4971)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50174E #175019
analogous
#351750 #50174E #501732
triadic
#50174E #4E5017 #174E50
tetradic
#50174E #503517 #175019 #173250
square
#50174E #503517 #175019 #173250
split-complementary
#50174E #325017 #175035
monochromatic
#180717 #200920 #50174E #80257C #AF32AB

Accessibility & contrast

On white

13.35
#50174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#50174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50174E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50174E#FFFFFF#000000##FFFFFF
##50174E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A50
Deuteranopia (green-blind)
#26324C
Tritanopia (blue-blind)
#531E30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #50174e;
/* rgb */ color: rgb(80, 23, 78);
/* oklch */ color: oklch(32.1% 0.112 329.3);
Tailwind
colors: {
  custom: {
    50: '#835980',
    500: '#50174e',
    950: '#000000',
  },
}
SCSS
$custom: #50174e;
$custom-light: #835980;
$custom-dark: #000000;
JSON
{
  "hex": "#50174e",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 302.105,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32068,
    "c": 0.11189,
    "h": 329.3
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#50174E
secondary
#3C873E
accent
#DF4E49
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #50174E

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

Preview Lab → · Contrast checker → · Palette generator →

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