#50175E#50175E

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

Color values

HEX#50175E
RGBrgb(80, 23, 94)
HSLhsl(288, 61%, 23%)
HSVhsv(288, 76%, 37%)
CMYKcmyk(14.9%, 75.5%, 0%, 63.1%)
CIE-LABlab(20.54, 37.44, -29.84)
CIE-LCHlch(20.54, 47.88, 321.45°)
OKLaboklab(33.15% 0.0961 -0.0837)
OKLCHoklch(33.15% 0.127 319)
XYZxyz(5.6348, 3.1267, 10.8942)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50175E #255E17
analogous
#2C175E #50175E #5E1748
triadic
#50175E #5E5017 #175E50
tetradic
#50175E #5E2C17 #255E17 #17485E
square
#50175E #5E2C17 #255E17 #17485E
split-complementary
#50175E #485E17 #175E2C
monochromatic
#150619 #260B2D #50175E #7A238F #A42FC0

Accessibility & contrast

On white

12.92
#50175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50175E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50175E#FFFFFF#000000##FFFFFF
##50175E1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1C335C
Tritanopia (blue-blind)
#502539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #50175e;
/* rgb */ color: rgb(80, 23, 94);
/* oklch */ color: oklch(33.1% 0.127 319.0);
Tailwind
colors: {
  custom: {
    50: '#845a8c',
    500: '#50175e',
    950: '#000000',
  },
}
SCSS
$custom: #50175e;
$custom-light: #845a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#50175e",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 288.169,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.12743,
    "h": 319
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#50175E
secondary
#4E953C
accent
#E44464
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #50175E

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

Preview Lab → · Contrast checker → · Palette generator →

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