#5D1C8D#5D1C8D

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

Color values

HEX#5D1C8D
RGBrgb(93, 28, 141)
HSLhsl(275, 67%, 33%)
HSVhsv(275, 80%, 55%)
CMYKcmyk(34%, 80.1%, 0%, 44.7%)
CIE-LABlab(26.96, 48.76, -49.46)
CIE-LCHlch(26.96, 69.46, 314.59°)
OKLaboklab(39.25% 0.1011 -0.1409)
OKLCHoklch(39.25% 0.173 305.7)
XYZxyz(9.7361, 5.0808, 25.6619)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C8D #4C8D1C
analogous
#241C8D #5D1C8D #8D1C84
triadic
#5D1C8D #8D5D1C #1C8D5D
tetradic
#5D1C8D #8D241C #4C8D1C #1C848D
square
#5D1C8D #8D241C #4C8D1C #1C848D
split-complementary
#5D1C8D #848D1C #1C8D24
monochromatic
#1A0827 #3B125A #5D1C8D #7F26C0 #9D49DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D1C8D#FFFFFF#000000##FFFFFF
##5D1C8D1.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)
#543954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1c8d;
/* rgb */ color: rgb(93, 28, 141);
/* oklch */ color: oklch(39.3% 0.173 305.7);
Tailwind
colors: {
  custom: {
    50: '#9061af',
    500: '#5d1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c8d;
$custom-light: #9061af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c8d",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 274.513,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39252,
    "c": 0.17337,
    "h": 305.7
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#5D1C8D
secondary
#7ABD48
accent
#EA3E87
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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