#5C1DA1#5C1DA1

#5C1DA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.192 H 298.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5C1DA1
RGBrgb(92, 29, 161)
HSLhsl(269, 69%, 37%)
HSVhsv(269, 82%, 63%)
CMYKcmyk(42.9%, 82%, 0%, 36.9%)
CIE-LABlab(28.71, 53.01, -58.89)
CIE-LCHlch(28.71, 79.24, 311.99°)
OKLaboklab(40.98% 0.0928 -0.1686)
OKLCHoklch(40.98% 0.192 298.8)
XYZxyz(11.2844, 5.7271, 34.2222)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1DA1 #62A11D
analogous
#1D20A1 #5C1DA1 #9E1DA1
triadic
#5C1DA1 #A15C1D #1DA15C
tetradic
#5C1DA1 #A11D20 #62A11D #1DA19E
square
#5C1DA1 #A11D20 #62A11D #1DA19E
split-complementary
#5C1DA1 #A19E1D #20A11D
monochromatic
#210A39 #3E146D #5C1DA1 #7A26D5 #9958E1

Accessibility & contrast

On white

9.79
#5C1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5C1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1DA1
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1DA1#FFFFFF#000000##FFFFFF
##5C1DA11.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#4B4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c1da1;
/* rgb */ color: rgb(92, 29, 161);
/* oklch */ color: oklch(41.0% 0.192 298.8);
Tailwind
colors: {
  custom: {
    50: '#9162be',
    500: '#5c1da1',
    950: '#000000',
  },
}
SCSS
$custom: #5c1da1;
$custom-light: #9162be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1da1",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 268.636,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40982,
    "c": 0.19245,
    "h": 298.8
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#5C1DA1
secondary
#8FC455
accent
#EC3C98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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