#5C107F#5C107F

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

Color values

HEX#5C107F
RGBrgb(92, 16, 127)
HSLhsl(281, 78%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(27.6%, 87.4%, 0%, 50.2%)
CIE-LABlab(24.25, 49.47, -45.11)
CIE-LCHlch(24.25, 66.95, 317.64°)
OKLaboklab(36.96% 0.1127 -0.128)
OKLCHoklch(36.96% 0.171 311.4)
XYZxyz(8.4290, 4.1784, 20.4371)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C107F #337F10
analogous
#24107F #5C107F #7F106A
triadic
#5C107F #7F5C10 #107F5C
tetradic
#5C107F #7F2410 #337F10 #106A7F
square
#5C107F #7F2410 #337F10 #106A7F
split-complementary
#5C107F #6A7F10 #107F24
monochromatic
#14031B #350949 #5C107F #8317B5 #A826E4

Accessibility & contrast

On white

11.44
#5C107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C107F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C107F#FFFFFF#000000##FFFFFF
##5C107F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c107f;
/* rgb */ color: rgb(92, 16, 127);
/* oklch */ color: oklch(37.0% 0.171 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ba5',
    500: '#5c107f',
    950: '#000000',
  },
}
SCSS
$custom: #5c107f;
$custom-light: #8f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c107f",
  "rgb": {
    "r": 92,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 281.081,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36965,
    "c": 0.17053,
    "h": 311.4
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#5C107F
secondary
#5EB536
accent
#F43470
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C107F

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

Preview Lab → · Contrast checker → · Palette generator →

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