#5C1887#5C1887

#5C1887 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.171 H 307.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5C1887
RGBrgb(92, 24, 135)
HSLhsl(277, 70%, 31%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(31.9%, 82.2%, 0%, 47.1%)
CIE-LABlab(25.80, 48.68, -47.63)
CIE-LCHlch(25.80, 68.11, 315.63°)
OKLaboklab(38.25% 0.1045 -0.1355)
OKLCHoklch(38.25% 0.171 307.7)
XYZxyz(9.1125, 4.6780, 23.3399)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1887 #438718
analogous
#251887 #5C1887 #87187A
triadic
#5C1887 #875C18 #18875C
tetradic
#5C1887 #872518 #438718 #187A87
square
#5C1887 #872518 #438718 #187A87
split-complementary
#5C1887 #7A8718 #188725
monochromatic
#15061F #390F53 #5C1887 #7F21BB #9F3DDC

Accessibility & contrast

On white

10.85
#5C1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1887
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1887#FFFFFF#000000##FFFFFF
##5C18871.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#553550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1887;
/* rgb */ color: rgb(92, 24, 135);
/* oklch */ color: oklch(38.2% 0.171 307.7);
Tailwind
colors: {
  custom: {
    50: '#8f5eab',
    500: '#5c1887',
    950: '#000000',
  },
}
SCSS
$custom: #5c1887;
$custom-light: #8f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1887",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 276.757,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38249,
    "c": 0.17112,
    "h": 307.7
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#5C1887
secondary
#70BB40
accent
#ED3B80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1887

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

Preview Lab → · Contrast checker → · Palette generator →

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