#5D117E#5D117E

#5D117E is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.1% C 0.169 H 312.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5D117E
RGBrgb(93, 17, 126)
HSLhsl(282, 76%, 28%)
HSVhsv(282, 87%, 49%)
CMYKcmyk(26.2%, 86.5%, 0%, 50.6%)
CIE-LABlab(24.43, 49.14, -44.18)
CIE-LCHlch(24.43, 66.08, 318.04°)
OKLaboklab(37.1% 0.1137 -0.1252)
OKLCHoklch(37.1% 0.169 312.2)
XYZxyz(8.4798, 4.2347, 20.1053)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D117E #327E11
analogous
#26117E #5D117E #7E1168
triadic
#5D117E #7E5D11 #117E5D
tetradic
#5D117E #7E2611 #327E11 #11687E
square
#5D117E #7E2611 #327E11 #11687E
split-complementary
#5D117E #687E11 #117E26
monochromatic
#14041B #350A48 #5D117E #8518B4 #A927E2

Accessibility & contrast

On white

11.37
#5D117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D117E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D117E#FFFFFF#000000##FFFFFF
##5D117E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#592E4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d117e;
/* rgb */ color: rgb(93, 17, 126);
/* oklch */ color: oklch(37.1% 0.169 312.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ba4',
    500: '#5d117e',
    950: '#000000',
  },
}
SCSS
$custom: #5d117e;
$custom-light: #8f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d117e",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 281.835,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37097,
    "c": 0.16913,
    "h": 312.2
  },
  "luminance": 0.04234
}

Semantic roles & 50–950 ramp

primary
#5D117E
secondary
#5DB437
accent
#F3356E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D117E

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

Preview Lab → · Contrast checker → · Palette generator →

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