#50175D#50175D

#50175D is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.126 H 319.5°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#50175D
RGBrgb(80, 23, 93)
HSLhsl(289, 60%, 23%)
HSVhsv(289, 75%, 36%)
CMYKcmyk(14%, 75.3%, 0%, 63.5%)
CIE-LABlab(20.47, 37.23, -29.29)
CIE-LCHlch(20.47, 47.37, 321.81°)
OKLaboklab(33.07% 0.0962 -0.0821)
OKLCHoklch(33.07% 0.126 319.5)
XYZxyz(5.5902, 3.1088, 10.6594)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50175D #245D17
analogous
#2D175D #50175D #5D1747
triadic
#50175D #5D5017 #175D50
tetradic
#50175D #5D2D17 #245D17 #17475D
square
#50175D #5D2D17 #245D17 #17475D
split-complementary
#50175D #475D17 #175D2D
monochromatic
#150619 #260B2C #50175D #7A238E #A42FBF

Accessibility & contrast

On white

12.95
#50175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#50175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50175D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50175D#FFFFFF#000000##FFFFFF
##50175D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#1C335B
Tritanopia (blue-blind)
#502438
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #50175d;
/* rgb */ color: rgb(80, 23, 93);
/* oklch */ color: oklch(33.1% 0.126 319.5);
Tailwind
colors: {
  custom: {
    50: '#845a8b',
    500: '#50175d',
    950: '#000000',
  },
}
SCSS
$custom: #50175d;
$custom-light: #845a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#50175d",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 288.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33073,
    "c": 0.12643,
    "h": 319.5
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#50175D
secondary
#4C943C
accent
#E34462
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #50175D

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

Preview Lab → · Contrast checker → · Palette generator →

#50175D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva