#50175C#50175C

#50175C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.125 H 320.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#50175C
RGBrgb(80, 23, 92)
HSLhsl(290, 60%, 23%)
HSVhsv(290, 75%, 36%)
CMYKcmyk(13%, 75%, 0%, 63.9%)
CIE-LABlab(20.41, 37.01, -28.74)
CIE-LCHlch(20.41, 46.86, 322.18°)
OKLaboklab(33% 0.0962 -0.0804)
OKLCHoklch(33% 0.125 320.1)
XYZxyz(5.5462, 3.0912, 10.4277)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50175C #235C17
analogous
#2D175C #50175C #5C1746
triadic
#50175C #5C5017 #175C50
tetradic
#50175C #5C2D17 #235C17 #17465C
square
#50175C #5C2D17 #235C17 #17465C
split-complementary
#50175C #465C17 #175C2D
monochromatic
#150618 #250B2B #50175C #7B238D #A52FBE

Accessibility & contrast

On white

12.98
#50175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50175C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50175C#FFFFFF#000000##FFFFFF
##50175C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1D335A
Tritanopia (blue-blind)
#502437
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #50175c;
/* rgb */ color: rgb(80, 23, 92);
/* oklch */ color: oklch(33.0% 0.125 320.1);
Tailwind
colors: {
  custom: {
    50: '#845a8a',
    500: '#50175c',
    950: '#000000',
  },
}
SCSS
$custom: #50175c;
$custom-light: #845a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#50175c",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 289.565,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33001,
    "c": 0.12543,
    "h": 320.1
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#50175C
secondary
#4B933C
accent
#E34560
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #50175C

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

Preview Lab → · Contrast checker → · Palette generator →

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