#5C1D9E#5C1D9E

#5C1D9E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.189 H 299.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5C1D9E
RGBrgb(92, 29, 158)
HSLhsl(269, 69%, 37%)
HSVhsv(269, 82%, 62%)
CMYKcmyk(41.8%, 81.6%, 0%, 38%)
CIE-LABlab(28.44, 52.28, -57.51)
CIE-LCHlch(28.44, 77.73, 312.27°)
OKLaboklab(40.71% 0.0938 -0.1645)
OKLCHoklch(40.71% 0.189 299.7)
XYZxyz(11.0230, 5.6225, 32.8456)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D9E #5F9E1D
analogous
#1D1F9E #5C1D9E #9D1D9E
triadic
#5C1D9E #9E5C1D #1D9E5C
tetradic
#5C1D9E #9E1D1F #5F9E1D #1D9E9D
square
#5C1D9E #9E1D1F #5F9E1D #1D9E9D
split-complementary
#5C1D9E #9E9D1D #1F9E1D
monochromatic
#200A37 #3E146A #5C1D9E #7A26D2 #9956E0

Accessibility & contrast

On white

9.88
#5C1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5C1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D9E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D9E#FFFFFF#000000##FFFFFF
##5C1D9E1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4C415E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c1d9e;
/* rgb */ color: rgb(92, 29, 158);
/* oklch */ color: oklch(40.7% 0.189 299.7);
Tailwind
colors: {
  custom: {
    50: '#9162bc',
    500: '#5c1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d9e;
$custom-light: #9162bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d9e",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 269.302,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.1894,
    "h": 299.7
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#5C1D9E
secondary
#8DC354
accent
#EC3C96
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5C1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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