#5C1987#5C1987

#5C1987 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.170 H 307.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5C1987
RGBrgb(92, 25, 135)
HSLhsl(277, 69%, 31%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(31.9%, 81.5%, 0%, 47.1%)
CIE-LABlab(25.92, 48.32, -47.43)
CIE-LCHlch(25.92, 67.71, 315.53°)
OKLaboklab(38.34% 0.1037 -0.1349)
OKLCHoklch(38.34% 0.17 307.6)
XYZxyz(9.1335, 4.7200, 23.3469)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1987 #448719
analogous
#251987 #5C1987 #87197B
triadic
#5C1987 #875C19 #19875C
tetradic
#5C1987 #872519 #448719 #197B87
square
#5C1987 #872519 #448719 #197B87
split-complementary
#5C1987 #7B8719 #198725
monochromatic
#160620 #390F53 #5C1987 #7F23BB #9E3FDB

Accessibility & contrast

On white

10.80
#5C1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1987
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1987#FFFFFF#000000##FFFFFF
##5C19871.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1987;
/* rgb */ color: rgb(92, 25, 135);
/* oklch */ color: oklch(38.3% 0.170 307.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fab',
    500: '#5c1987',
    950: '#000000',
  },
}
SCSS
$custom: #5c1987;
$custom-light: #8f5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1987",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 276.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38336,
    "c": 0.17015,
    "h": 307.6
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#5C1987
secondary
#71BA41
accent
#EC3C81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1987

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

Preview Lab → · Contrast checker → · Palette generator →

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