#5C1787#5C1787

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

Color values

HEX#5C1787
RGBrgb(92, 23, 135)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 53%)
CMYKcmyk(31.9%, 83%, 0%, 47.1%)
CIE-LABlab(25.68, 49.04, -47.83)
CIE-LCHlch(25.68, 68.50, 315.71°)
OKLaboklab(38.16% 0.1053 -0.136)
OKLCHoklch(38.16% 0.172 307.7)
XYZxyz(9.0923, 4.6375, 23.3331)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1787 #428717
analogous
#241787 #5C1787 #87177A
triadic
#5C1787 #875C17 #17875C
tetradic
#5C1787 #872417 #428717 #177A87
square
#5C1787 #872417 #428717 #177A87
split-complementary
#5C1787 #7A8717 #178724
monochromatic
#15051E #380E53 #5C1787 #8020BB #9F3BDE

Accessibility & contrast

On white

10.90
#5C1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1787
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1787#FFFFFF#000000##FFFFFF
##5C17871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1787;
/* rgb */ color: rgb(92, 23, 135);
/* oklch */ color: oklch(38.2% 0.172 307.7);
Tailwind
colors: {
  custom: {
    50: '#8f5eab',
    500: '#5c1787',
    950: '#000000',
  },
}
SCSS
$custom: #5c1787;
$custom-light: #8f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1787",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 276.964,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.17206,
    "h": 307.7
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#5C1787
secondary
#6FBB3F
accent
#EE3A7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1787

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

Preview Lab → · Contrast checker → · Palette generator →

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