#5C117F#5C117F

#5C117F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.170 H 311.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5C117F
RGBrgb(92, 17, 127)
HSLhsl(281, 76%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(27.6%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.35, 49.18, -44.95)
CIE-LCHlch(24.35, 66.63, 317.57°)
OKLaboklab(37.03% 0.112 -0.1275)
OKLCHoklch(37.03% 0.17 311.3)
XYZxyz(8.4441, 4.2087, 20.4421)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C117F #347F11
analogous
#25117F #5C117F #7F116B
triadic
#5C117F #7F5C11 #117F5C
tetradic
#5C117F #7F2511 #347F11 #116B7F
square
#5C117F #7F2511 #347F11 #116B7F
split-complementary
#5C117F #6B7F11 #117F25
monochromatic
#14041B #350A49 #5C117F #8318B5 #A728E2

Accessibility & contrast

On white

11.40
#5C117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C117F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C117F#FFFFFF#000000##FFFFFF
##5C117F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c117f;
/* rgb */ color: rgb(92, 17, 127);
/* oklch */ color: oklch(37.0% 0.170 311.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ba5',
    500: '#5c117f',
    950: '#000000',
  },
}
SCSS
$custom: #5c117f;
$custom-light: #8f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c117f",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 280.909,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37032,
    "c": 0.16974,
    "h": 311.3
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#5C117F
secondary
#5FB537
accent
#F33571
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C117F

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

Preview Lab → · Contrast checker → · Palette generator →

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