#50175A#50175A

#50175A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.123 H 321.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#50175A
RGBrgb(80, 23, 90)
HSLhsl(291, 59%, 22%)
HSVhsv(291, 74%, 35%)
CMYKcmyk(11.1%, 74.4%, 0%, 64.7%)
CIE-LABlab(20.27, 36.59, -27.62)
CIE-LCHlch(20.27, 45.84, 322.95°)
OKLaboklab(32.86% 0.0963 -0.0772)
OKLCHoklch(32.86% 0.123 321.3)
XYZxyz(5.4599, 3.0567, 9.9733)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50175A #215A17
analogous
#2F175A #50175A #5A1743
triadic
#50175A #5A5017 #175A50
tetradic
#50175A #5A2F17 #215A17 #17435A
square
#50175A #5A2F17 #215A17 #17435A
split-complementary
#50175A #435A17 #175A2F
monochromatic
#160618 #250B29 #50175A #7B238B #A730BB

Accessibility & contrast

On white

13.03
#50175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#50175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50175A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50175A#FFFFFF#000000##FFFFFF
##50175A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5C
Deuteranopia (green-blind)
#1F3358
Tritanopia (blue-blind)
#512336
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #50175a;
/* rgb */ color: rgb(80, 23, 90);
/* oklch */ color: oklch(32.9% 0.123 321.3);
Tailwind
colors: {
  custom: {
    50: '#845a89',
    500: '#50175a',
    950: '#000000',
  },
}
SCSS
$custom: #50175a;
$custom-light: #845a89;
$custom-dark: #000000;
JSON
{
  "hex": "#50175a",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 291.045,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3286,
    "c": 0.12344,
    "h": 321.3
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#50175A
secondary
#49913C
accent
#E2455D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #50175A

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

Preview Lab → · Contrast checker → · Palette generator →

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