#5D117C#5D117C

#5D117C is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.167 H 313.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5D117C
RGBrgb(93, 17, 124)
HSLhsl(283, 76%, 28%)
HSVhsv(283, 86%, 49%)
CMYKcmyk(25%, 86.3%, 0%, 51.4%)
CIE-LABlab(24.27, 48.72, -43.17)
CIE-LCHlch(24.27, 65.09, 318.45°)
OKLaboklab(36.93% 0.1142 -0.1223)
OKLCHoklch(36.93% 0.167 313)
XYZxyz(8.3521, 4.1836, 19.4324)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D117C #307C11
analogous
#28117C #5D117C #7C1165
triadic
#5D117C #7C5D11 #117C5D
tetradic
#5D117C #7C2811 #307C11 #11657C
square
#5D117C #7C2811 #307C11 #11657C
split-complementary
#5D117C #657C11 #117C28
monochromatic
#14041B #350A46 #5D117C #8518B2 #AB26E1

Accessibility & contrast

On white

11.43
#5D117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D117C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D117C#FFFFFF#000000##FFFFFF
##5D117C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#592D48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d117c;
/* rgb */ color: rgb(93, 17, 124);
/* oklch */ color: oklch(36.9% 0.167 313.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ba3',
    500: '#5d117c',
    950: '#000000',
  },
}
SCSS
$custom: #5d117c;
$custom-light: #8f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d117c",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 282.617,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36932,
    "c": 0.16732,
    "h": 313
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#5D117C
secondary
#5AB237
accent
#F2356C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D117C

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

Preview Lab → · Contrast checker → · Palette generator →

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