#5D117F#5D117F

#5D117F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 311.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5D117F
RGBrgb(93, 17, 127)
HSLhsl(281, 76%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(26.8%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.51, 49.35, -44.68)
CIE-LCHlch(24.51, 66.57, 317.85°)
OKLaboklab(37.18% 0.1134 -0.1267)
OKLCHoklch(37.18% 0.17 311.8)
XYZxyz(8.5447, 4.2606, 20.4468)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D117F #337F11
analogous
#26117F #5D117F #7F116A
triadic
#5D117F #7F5D11 #117F5D
tetradic
#5D117F #7F2611 #337F11 #116A7F
square
#5D117F #7F2611 #337F11 #116A7F
split-complementary
#5D117F #6A7F11 #117F26
monochromatic
#14041B #350A49 #5D117F #8518B5 #A928E2

Accessibility & contrast

On white

11.34
#5D117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D117F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D117F#FFFFFF#000000##FFFFFF
##5D117F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#592F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d117f;
/* rgb */ color: rgb(93, 17, 127);
/* oklch */ color: oklch(37.2% 0.170 311.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ba5',
    500: '#5d117f',
    950: '#000000',
  },
}
SCSS
$custom: #5d117f;
$custom-light: #8f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d117f",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 281.455,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.17004,
    "h": 311.8
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#5D117F
secondary
#5EB537
accent
#F33570
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D117F

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

Preview Lab → · Contrast checker → · Palette generator →

#5D117F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva