#5D1E8A#5D1E8A

#5D1E8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.168 H 306.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5D1E8A
RGBrgb(93, 30, 138)
HSLhsl(275, 64%, 33%)
HSVhsv(275, 78%, 54%)
CMYKcmyk(32.6%, 78.3%, 0%, 45.9%)
CIE-LABlab(26.99, 47.26, -47.55)
CIE-LCHlch(26.99, 67.04, 314.82°)
OKLaboklab(39.19% 0.1 -0.1352)
OKLCHoklch(39.19% 0.168 306.5)
XYZxyz(9.5649, 5.0908, 24.5186)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E8A #4B8A1E
analogous
#271E8A #5D1E8A #8A1E81
triadic
#5D1E8A #8A5D1E #1E8A5D
tetradic
#5D1E8A #8A271E #4B8A1E #1E818A
square
#5D1E8A #8A271E #4B8A1E #1E818A
split-complementary
#5D1E8A #818A1E #1E8A27
monochromatic
#190825 #3B1358 #5D1E8A #7F29BC #9D4BD8

Accessibility & contrast

On white

10.41
#5D1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1E8A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E8A#FFFFFF#000000##FFFFFF
##5D1E8A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#553953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1e8a;
/* rgb */ color: rgb(93, 30, 138);
/* oklch */ color: oklch(39.2% 0.168 306.5);
Tailwind
colors: {
  custom: {
    50: '#9061ad',
    500: '#5d1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e8a;
$custom-light: #9061ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e8a",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 275,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39194,
    "c": 0.16823,
    "h": 306.5
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#5D1E8A
secondary
#79BA4A
accent
#E74186
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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