#5C1886#5C1886

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

Color values

HEX#5C1886
RGBrgb(92, 24, 134)
HSLhsl(277, 70%, 31%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(31.3%, 82.1%, 0%, 47.5%)
CIE-LABlab(25.71, 48.45, -47.14)
CIE-LCHlch(25.71, 67.60, 315.79°)
OKLaboklab(38.16% 0.1048 -0.134)
OKLCHoklch(38.16% 0.17 308)
XYZxyz(9.0424, 4.6500, 22.9708)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1886 #428618
analogous
#251886 #5C1886 #861879
triadic
#5C1886 #865C18 #18865C
tetradic
#5C1886 #862518 #428618 #187986
square
#5C1886 #862518 #428618 #187986
split-complementary
#5C1886 #798618 #188625
monochromatic
#15051E #380F52 #5C1886 #8021BA #9F3CDC

Accessibility & contrast

On white

10.88
#5C1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1886
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1886#FFFFFF#000000##FFFFFF
##5C18861.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1886;
/* rgb */ color: rgb(92, 24, 134);
/* oklch */ color: oklch(38.2% 0.170 308.0);
Tailwind
colors: {
  custom: {
    50: '#8f5eaa',
    500: '#5c1886',
    950: '#000000',
  },
}
SCSS
$custom: #5c1886;
$custom-light: #8f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1886",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 277.091,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.17015,
    "h": 308
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#5C1886
secondary
#6FBA40
accent
#EC3B7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1886

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

Preview Lab → · Contrast checker → · Palette generator →

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