#50174A#50174A

#50174A is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.108 H 332.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#50174A
RGBrgb(80, 23, 74)
HSLhsl(306, 55%, 20%)
HSVhsv(306, 71%, 31%)
CMYKcmyk(0%, 71.2%, 7.5%, 68.6%)
CIE-LABlab(19.28, 33.40, -18.39)
CIE-LCHlch(19.28, 38.12, 331.17°)
OKLaboklab(31.83% 0.0958 -0.0504)
OKLCHoklch(31.83% 0.108 332.2)
XYZxyz(4.8507, 2.8131, 6.7647)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50174A #17501D
analogous
#391750 #50174A #50172D
triadic
#50174A #4A5017 #174A50
tetradic
#50174A #503917 #17501D #172D50
square
#50174A #503917 #17501D #172D50
split-complementary
#50174A #2D5017 #175039
monochromatic
#180716 #20091E #50174A #802576 #AF32A2

Accessibility & contrast

On white

13.44
#50174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#50174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50174A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50174A#FFFFFF#000000##FFFFFF
##50174A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4C
Deuteranopia (green-blind)
#283249
Tritanopia (blue-blind)
#541C2E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #50174a;
/* rgb */ color: rgb(80, 23, 74);
/* oklch */ color: oklch(31.8% 0.108 332.2);
Tailwind
colors: {
  custom: {
    50: '#83597c',
    500: '#50174a',
    950: '#000000',
  },
}
SCSS
$custom: #50174a;
$custom-light: #83597c;
$custom-dark: #000000;
JSON
{
  "hex": "#50174a",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 306.316,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31826,
    "c": 0.10824,
    "h": 332.2
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#50174A
secondary
#3C8744
accent
#DF5949
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #50174A

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

Preview Lab → · Contrast checker → · Palette generator →

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