#5D1D8D#5D1D8D

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

Color values

HEX#5D1D8D
RGBrgb(93, 29, 141)
HSLhsl(274, 66%, 33%)
HSVhsv(274, 79%, 55%)
CMYKcmyk(34%, 79.4%, 0%, 44.7%)
CIE-LABlab(27.10, 48.37, -49.24)
CIE-LCHlch(27.10, 69.02, 314.49°)
OKLaboklab(39.35% 0.1002 -0.1402)
OKLCHoklch(39.35% 0.172 305.6)
XYZxyz(9.7602, 5.1290, 25.6700)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D8D #4D8D1D
analogous
#251D8D #5D1D8D #8D1D85
triadic
#5D1D8D #8D5D1D #1D8D5D
tetradic
#5D1D8D #8D251D #4D8D1D #1D858D
square
#5D1D8D #8D251D #4D8D1D #1D858D
split-complementary
#5D1D8D #858D1D #1D8D25
monochromatic
#1A0827 #3C135A #5D1D8D #7E27C0 #9C4BDA

Accessibility & contrast

On white

10.37
#5D1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D8D
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D8D#FFFFFF#000000##FFFFFF
##5D1D8D1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1d8d;
/* rgb */ color: rgb(93, 29, 141);
/* oklch */ color: oklch(39.3% 0.172 305.6);
Tailwind
colors: {
  custom: {
    50: '#9061af',
    500: '#5d1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d8d;
$custom-light: #9061af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d8d",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 274.286,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.17234,
    "h": 305.6
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#5D1D8D
secondary
#7BBC4A
accent
#E93F88
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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