#5C1E9A#5C1E9A

#5C1E9A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.184 H 300.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5C1E9A
RGBrgb(92, 30, 154)
HSLhsl(270, 67%, 36%)
HSVhsv(270, 81%, 60%)
CMYKcmyk(40.3%, 80.5%, 0%, 39.6%)
CIE-LABlab(28.21, 50.92, -55.44)
CIE-LCHlch(28.21, 75.28, 312.57°)
OKLaboklab(40.44% 0.0943 -0.1585)
OKLCHoklch(40.44% 0.184 300.8)
XYZxyz(10.7092, 5.5369, 31.0701)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E9A #5C9A1E
analogous
#1E1E9A #5C1E9A #9A1E9A
triadic
#5C1E9A #9A5C1E #1E9A5C
tetradic
#5C1E9A #9A1E1E #5C9A1E #1E9A9A
square
#5C1E9A #9A1E1E #5C9A1E #1E9A9A
split-complementary
#5C1E9A #9A9A1E #1E9A1E
monochromatic
#1F0A34 #3D1467 #5C1E9A #7B28CD #9955DE

Accessibility & contrast

On white

9.96
#5C1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C1E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1E9A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E9A#FFFFFF#000000##FFFFFF
##5C1E9A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4E405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c1e9a;
/* rgb */ color: rgb(92, 30, 154);
/* oklch */ color: oklch(40.4% 0.184 300.8);
Tailwind
colors: {
  custom: {
    50: '#9162b9',
    500: '#5c1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e9a;
$custom-light: #9162b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e9a",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 270,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40441,
    "c": 0.18439,
    "h": 300.8
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#5C1E9A
secondary
#8AC153
accent
#EA3E94
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5C1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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