#5D1C8E#5D1C8E

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

Color values

HEX#5D1C8E
RGBrgb(93, 28, 142)
HSLhsl(274, 67%, 33%)
HSVhsv(274, 80%, 56%)
CMYKcmyk(34.5%, 80.3%, 0%, 44.3%)
CIE-LABlab(27.05, 48.99, -49.95)
CIE-LCHlch(27.05, 69.97, 314.45°)
OKLaboklab(39.34% 0.1008 -0.1423)
OKLCHoklch(39.34% 0.174 305.3)
XYZxyz(9.8108, 5.1107, 26.0556)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C8E #4D8E1C
analogous
#241C8E #5D1C8E #8E1C86
triadic
#5D1C8E #8E5D1C #1C8E5D
tetradic
#5D1C8E #8E241C #4D8E1C #1C868E
square
#5D1C8E #8E241C #4D8E1C #1C868E
split-complementary
#5D1C8E #868E1C #1C8E24
monochromatic
#1A0828 #3C125B #5D1C8E #7E26C1 #9C49DB

Accessibility & contrast

On white

10.38
#5D1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1C8E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C8E#FFFFFF#000000##FFFFFF
##5D1C8E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#543A55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1c8e;
/* rgb */ color: rgb(93, 28, 142);
/* oklch */ color: oklch(39.3% 0.174 305.3);
Tailwind
colors: {
  custom: {
    50: '#9061b0',
    500: '#5d1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c8e;
$custom-light: #9061b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c8e",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 274.211,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39337,
    "c": 0.17437,
    "h": 305.3
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#5D1C8E
secondary
#7BBD49
accent
#EA3E88
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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