#5C1786#5C1786

#5C1786 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 308.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5C1786
RGBrgb(92, 23, 134)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 53%)
CMYKcmyk(31.3%, 82.8%, 0%, 47.5%)
CIE-LABlab(25.59, 48.81, -47.34)
CIE-LCHlch(25.59, 67.99, 315.88°)
OKLaboklab(38.08% 0.1056 -0.1346)
OKLCHoklch(38.08% 0.171 308.1)
XYZxyz(9.0222, 4.6095, 22.9641)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1786 #418617
analogous
#241786 #5C1786 #861778
triadic
#5C1786 #865C17 #17865C
tetradic
#5C1786 #862417 #418617 #177886
square
#5C1786 #862417 #418617 #177886
split-complementary
#5C1786 #788617 #178624
monochromatic
#14051E #380E52 #5C1786 #8020BA #A03ADD

Accessibility & contrast

On white

10.93
#5C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1786
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1786#FFFFFF#000000##FFFFFF
##5C17861.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#55344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1786;
/* rgb */ color: rgb(92, 23, 134);
/* oklch */ color: oklch(38.1% 0.171 308.1);
Tailwind
colors: {
  custom: {
    50: '#8f5eaa',
    500: '#5c1786',
    950: '#000000',
  },
}
SCSS
$custom: #5c1786;
$custom-light: #8f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1786",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 277.297,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38079,
    "c": 0.17109,
    "h": 308.1
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#5C1786
secondary
#6DBA3F
accent
#ED3A7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1786

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

Preview Lab → · Contrast checker → · Palette generator →

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