#50175F#50175F

#50175F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.128 H 318.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#50175F
RGBrgb(80, 23, 95)
HSLhsl(288, 61%, 23%)
HSVhsv(288, 76%, 37%)
CMYKcmyk(15.8%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.61, 37.66, -30.39)
CIE-LCHlch(20.61, 48.39, 321.10°)
OKLaboklab(33.22% 0.096 -0.0853)
OKLCHoklch(33.22% 0.128 318.4)
XYZxyz(5.6799, 3.1447, 11.1321)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50175F #265F17
analogous
#2C175F #50175F #5F174A
triadic
#50175F #5F5017 #175F50
tetradic
#50175F #5F2C17 #265F17 #174A5F
square
#50175F #5F2C17 #265F17 #174A5F
split-complementary
#50175F #4A5F17 #175F2C
monochromatic
#150619 #270B2E #50175F #792390 #A32FC2

Accessibility & contrast

On white

12.89
#50175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#50175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50175F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50175F#FFFFFF#000000##FFFFFF
##50175F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1B335D
Tritanopia (blue-blind)
#502539
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #50175f;
/* rgb */ color: rgb(80, 23, 95);
/* oklch */ color: oklch(33.2% 0.128 318.4);
Tailwind
colors: {
  custom: {
    50: '#845a8d',
    500: '#50175f',
    950: '#000000',
  },
}
SCSS
$custom: #50175f;
$custom-light: #845a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#50175f",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 287.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.12843,
    "h": 318.4
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#50175F
secondary
#4F963C
accent
#E44465
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #50175F

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

Preview Lab → · Contrast checker → · Palette generator →

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