#5D1E8D#5D1E8D

#5D1E8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.171 H 305.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5D1E8D
RGBrgb(93, 30, 141)
HSLhsl(274, 65%, 34%)
HSVhsv(274, 79%, 55%)
CMYKcmyk(34%, 78.7%, 0%, 44.7%)
CIE-LABlab(27.24, 47.97, -49.02)
CIE-LCHlch(27.24, 68.58, 314.38°)
OKLaboklab(39.44% 0.0993 -0.1396)
OKLCHoklch(39.44% 0.171 305.4)
XYZxyz(9.7851, 5.1789, 25.6783)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E8D #4E8D1E
analogous
#251E8D #5D1E8D #8D1E85
triadic
#5D1E8D #8D5D1E #1E8D5D
tetradic
#5D1E8D #8D251E #4E8D1E #1E858D
square
#5D1E8D #8D251E #4E8D1E #1E858D
split-complementary
#5D1E8D #858D1E #1E8D25
monochromatic
#1A0928 #3C135B #5D1E8D #7E29BF #9C4CD9

Accessibility & contrast

On white

10.32
#5D1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E8D
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E8D#FFFFFF#000000##FFFFFF
##5D1E8D1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1e8d;
/* rgb */ color: rgb(93, 30, 141);
/* oklch */ color: oklch(39.4% 0.171 305.4);
Tailwind
colors: {
  custom: {
    50: '#9061af',
    500: '#5d1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e8d;
$custom-light: #9061af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e8d",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 274.054,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39444,
    "c": 0.17129,
    "h": 305.4
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#5D1E8D
secondary
#7CBC4B
accent
#E84089
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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