#5C1D8D#5C1D8D

#5C1D8D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.172 H 305.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5C1D8D
RGBrgb(92, 29, 141)
HSLhsl(274, 66%, 33%)
HSVhsv(274, 79%, 55%)
CMYKcmyk(34.8%, 79.4%, 0%, 44.7%)
CIE-LABlab(26.95, 48.19, -49.49)
CIE-LCHlch(26.95, 69.07, 314.24°)
OKLaboklab(39.21% 0.0987 -0.141)
OKLCHoklch(39.21% 0.172 305)
XYZxyz(9.6596, 5.0772, 25.6652)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D8D #4E8D1D
analogous
#241D8D #5C1D8D #8D1D86
triadic
#5C1D8D #8D5C1D #1D8D5C
tetradic
#5C1D8D #8D241D #4E8D1D #1D868D
square
#5C1D8D #8D241D #4E8D1D #1D868D
split-complementary
#5C1D8D #868D1D #1D8D24
monochromatic
#1A0827 #3B135A #5C1D8D #7D27C0 #9B4BDA

Accessibility & contrast

On white

10.42
#5C1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D8D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D8D#FFFFFF#000000##FFFFFF
##5C1D8D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#533A55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1d8d;
/* rgb */ color: rgb(92, 29, 141);
/* oklch */ color: oklch(39.2% 0.172 305.0);
Tailwind
colors: {
  custom: {
    50: '#8f61af',
    500: '#5c1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d8d;
$custom-light: #8f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d8d",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 273.75,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.17211,
    "h": 305
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#5C1D8D
secondary
#7CBC4A
accent
#E93F89
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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