#50117D#50117D

#50117D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.165 H 305.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#50117D
RGBrgb(80, 17, 125)
HSLhsl(275, 76%, 28%)
HSVhsv(275, 86%, 49%)
CMYKcmyk(36%, 86.4%, 0%, 51%)
CIE-LABlab(22.26, 46.75, -47.18)
CIE-LCHlch(22.26, 66.42, 314.74°)
OKLaboklab(35.13% 0.0949 -0.1345)
OKLCHoklch(35.13% 0.165 305.2)
XYZxyz(7.2095, 3.5871, 19.7106)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50117D #3E7D11
analogous
#1A117D #50117D #7D1174
triadic
#50117D #7D5011 #117D50
tetradic
#50117D #7D1A11 #3E7D11 #11747D
square
#50117D #7D1A11 #3E7D11 #11747D
split-complementary
#50117D #747D11 #117D1A
monochromatic
#11041B #2E0A47 #50117D #7218B3 #9427E2

Accessibility & contrast

On white

12.23
#50117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#50117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50117D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50117D#FFFFFF#000000##FFFFFF
##50117D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#473049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #50117d;
/* rgb */ color: rgb(80, 17, 125);
/* oklch */ color: oklch(35.1% 0.165 305.2);
Tailwind
colors: {
  custom: {
    50: '#8659a4',
    500: '#50117d',
    950: '#000000',
  },
}
SCSS
$custom: #50117d;
$custom-light: #8659a4;
$custom-dark: #000000;
JSON
{
  "hex": "#50117d",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 275,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35133,
    "c": 0.16465,
    "h": 305.2
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#50117D
secondary
#6BB337
accent
#F33584
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50117D

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

Preview Lab → · Contrast checker → · Palette generator →

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