#5C107E#5C107E

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

Color values

HEX#5C107E
RGBrgb(92, 16, 126)
HSLhsl(281, 77%, 28%)
HSVhsv(281, 87%, 49%)
CMYKcmyk(27%, 87.3%, 0%, 50.6%)
CIE-LABlab(24.17, 49.25, -44.61)
CIE-LCHlch(24.17, 66.45, 317.83°)
OKLaboklab(36.88% 0.113 -0.1265)
OKLCHoklch(36.88% 0.17 311.7)
XYZxyz(8.3641, 4.1525, 20.0955)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C107E #327E10
analogous
#25107E #5C107E #7E1069
triadic
#5C107E #7E5C10 #107E5C
tetradic
#5C107E #7E2510 #327E10 #10697E
square
#5C107E #7E2510 #327E10 #10697E
split-complementary
#5C107E #697E10 #107E25
monochromatic
#14031B #340948 #5C107E #8417B4 #A925E3

Accessibility & contrast

On white

11.47
#5C107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C107E
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C107E#FFFFFF#000000##FFFFFF
##5C107E1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#582E49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c107e;
/* rgb */ color: rgb(92, 16, 126);
/* oklch */ color: oklch(36.9% 0.170 311.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ba4',
    500: '#5c107e',
    950: '#000000',
  },
}
SCSS
$custom: #5c107e;
$custom-light: #8f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c107e",
  "rgb": {
    "r": 92,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 281.455,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36881,
    "c": 0.16962,
    "h": 311.7
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#5C107E
secondary
#5DB436
accent
#F4346F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C107E

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

Preview Lab → · Contrast checker → · Palette generator →

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