#5C1686#5C1686

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

Color values

HEX#5C1686
RGBrgb(92, 22, 134)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(31.3%, 83.6%, 0%, 47.5%)
CIE-LABlab(25.47, 49.15, -47.53)
CIE-LCHlch(25.47, 68.37, 315.96°)
OKLaboklab(38% 0.1064 -0.1352)
OKLCHoklch(38% 0.172 308.2)
XYZxyz(9.0027, 4.5705, 22.9576)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1686 #408616
analogous
#241686 #5C1686 #861678
triadic
#5C1686 #865C16 #16865C
tetradic
#5C1686 #862416 #408616 #167886
square
#5C1686 #862416 #408616 #167886
split-complementary
#5C1686 #788616 #168624
monochromatic
#14051D #380D51 #5C1686 #801FBB #A038DE

Accessibility & contrast

On white

10.97
#5C1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1686
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1686#FFFFFF#000000##FFFFFF
##5C16861.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1686;
/* rgb */ color: rgb(92, 22, 134);
/* oklch */ color: oklch(38.0% 0.172 308.2);
Tailwind
colors: {
  custom: {
    50: '#8f5daa',
    500: '#5c1686',
    950: '#000000',
  },
}
SCSS
$custom: #5c1686;
$custom-light: #8f5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1686",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 277.5,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37998,
    "c": 0.17202,
    "h": 308.2
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#5C1686
secondary
#6CBA3E
accent
#EF397D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1686

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

Preview Lab → · Contrast checker → · Palette generator →

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