#5C117E#5C117E

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

Color values

HEX#5C117E
RGBrgb(92, 17, 126)
HSLhsl(281, 76%, 28%)
HSVhsv(281, 87%, 49%)
CMYKcmyk(27%, 86.5%, 0%, 50.6%)
CIE-LABlab(24.27, 48.97, -44.45)
CIE-LCHlch(24.27, 66.14, 317.77°)
OKLaboklab(36.95% 0.1123 -0.1261)
OKLCHoklch(36.95% 0.169 311.7)
XYZxyz(8.3793, 4.1828, 20.1006)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C117E #337E11
analogous
#25117E #5C117E #7E116A
triadic
#5C117E #7E5C11 #117E5C
tetradic
#5C117E #7E2511 #337E11 #116A7E
square
#5C117E #7E2511 #337E11 #116A7E
split-complementary
#5C117E #6A7E11 #117E25
monochromatic
#14041B #350A48 #5C117E #8318B4 #A827E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C117E#FFFFFF#000000##FFFFFF
##5C117E1.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)
#003681
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#582E4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c117e;
/* rgb */ color: rgb(92, 17, 126);
/* oklch */ color: oklch(36.9% 0.169 311.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ba4',
    500: '#5c117e',
    950: '#000000',
  },
}
SCSS
$custom: #5c117e;
$custom-light: #8f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c117e",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 281.284,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36948,
    "c": 0.16883,
    "h": 311.7
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C117E

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

Preview Lab → · Contrast checker → · Palette generator →

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