#5D1C8A#5D1C8A

#5D1C8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.170 H 306.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5D1C8A
RGBrgb(93, 28, 138)
HSLhsl(275, 66%, 33%)
HSVhsv(275, 80%, 54%)
CMYKcmyk(32.6%, 79.7%, 0%, 45.9%)
CIE-LABlab(26.71, 48.06, -48.01)
CIE-LCHlch(26.71, 67.93, 315.03°)
OKLaboklab(39% 0.1018 -0.1366)
OKLCHoklch(39% 0.17 306.7)
XYZxyz(9.5159, 4.9927, 24.5022)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C8A #498A1C
analogous
#261C8A #5D1C8A #8A1C80
triadic
#5D1C8A #8A5D1C #1C8A5D
tetradic
#5D1C8A #8A261C #498A1C #1C808A
square
#5D1C8A #8A261C #498A1C #1C808A
split-complementary
#5D1C8A #808A1C #1C8A26
monochromatic
#180724 #3B1257 #5D1C8A #7F26BD #9E47DA

Accessibility & contrast

On white

10.51
#5D1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1C8A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C8A#FFFFFF#000000##FFFFFF
##5D1C8A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#553853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1c8a;
/* rgb */ color: rgb(93, 28, 138);
/* oklch */ color: oklch(39.0% 0.170 306.7);
Tailwind
colors: {
  custom: {
    50: '#9060ad',
    500: '#5d1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c8a;
$custom-light: #9060ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c8a",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 275.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38999,
    "c": 0.17036,
    "h": 306.7
  },
  "luminance": 0.04993
}

Semantic roles & 50–950 ramp

primary
#5D1C8A
secondary
#76BB46
accent
#E93F84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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