#5C1D9A#5C1D9A

#5C1D9A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 300.9°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5C1D9A
RGBrgb(92, 29, 154)
HSLhsl(270, 68%, 36%)
HSVhsv(270, 81%, 60%)
CMYKcmyk(40.3%, 81.2%, 0%, 39.6%)
CIE-LABlab(28.08, 51.31, -55.66)
CIE-LCHlch(28.08, 75.70, 312.67°)
OKLaboklab(40.35% 0.0951 -0.1591)
OKLCHoklch(40.35% 0.185 300.9)
XYZxyz(10.6843, 5.4870, 31.0618)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D9A #5B9A1D
analogous
#1D1D9A #5C1D9A #9A1D99
triadic
#5C1D9A #9A5C1D #1D9A5C
tetradic
#5C1D9A #9A1D1D #5B9A1D #1D999A
square
#5C1D9A #9A1D1D #5B9A1D #1D999A
split-complementary
#5C1D9A #999A1D #1D9A1D
monochromatic
#1E0A33 #3D1366 #5C1D9A #7B27CE #9953DF

Accessibility & contrast

On white

10.01
#5C1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D9A
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D9A#FFFFFF#000000##FFFFFF
##5C1D9A1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1d9a;
/* rgb */ color: rgb(92, 29, 154);
/* oklch */ color: oklch(40.3% 0.185 300.9);
Tailwind
colors: {
  custom: {
    50: '#9162b9',
    500: '#5c1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d9a;
$custom-light: #9162b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d9a",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 270.24,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.18534,
    "h": 300.9
  },
  "luminance": 0.05487
}

Semantic roles & 50–950 ramp

primary
#5C1D9A
secondary
#89C251
accent
#EB3D93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5C1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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