#5C117C#5C117C

#5C117C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.8% C 0.167 H 312.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5C117C
RGBrgb(92, 17, 124)
HSLhsl(282, 76%, 28%)
HSVhsv(282, 86%, 49%)
CMYKcmyk(25.8%, 86.3%, 0%, 51.4%)
CIE-LABlab(24.10, 48.54, -43.45)
CIE-LCHlch(24.10, 65.15, 318.17°)
OKLaboklab(36.78% 0.1128 -0.1231)
OKLCHoklch(36.78% 0.167 312.5)
XYZxyz(8.2515, 4.1317, 19.4277)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C117C #317C11
analogous
#26117C #5C117C #7C1167
triadic
#5C117C #7C5C11 #117C5C
tetradic
#5C117C #7C2611 #317C11 #11677C
square
#5C117C #7C2611 #317C11 #11677C
split-complementary
#5C117C #677C11 #117C26
monochromatic
#14041B #340A46 #5C117C #8418B2 #A926E1

Accessibility & contrast

On white

11.50
#5C117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5C117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C117C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C117C#FFFFFF#000000##FFFFFF
##5C117C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#582D48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c117c;
/* rgb */ color: rgb(92, 17, 124);
/* oklch */ color: oklch(36.8% 0.167 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f5ba3',
    500: '#5c117c',
    950: '#000000',
  },
}
SCSS
$custom: #5c117c;
$custom-light: #8f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c117c",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 282.056,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36782,
    "c": 0.167,
    "h": 312.5
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#5C117C
secondary
#5CB237
accent
#F2356E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C117C

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

Preview Lab → · Contrast checker → · Palette generator →

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