#5D1D89#5D1D89

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

Color values

HEX#5D1D89
RGBrgb(93, 29, 137)
HSLhsl(276, 65%, 33%)
HSVhsv(276, 79%, 54%)
CMYKcmyk(32.1%, 78.8%, 0%, 46.3%)
CIE-LABlab(26.77, 47.43, -47.29)
CIE-LCHlch(26.77, 66.98, 315.08°)
OKLaboklab(39.01% 0.1012 -0.1345)
OKLCHoklch(39.01% 0.168 307)
XYZxyz(9.4679, 5.0121, 24.1307)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D89 #49891D
analogous
#271D89 #5D1D89 #891D7F
triadic
#5D1D89 #895D1D #1D895D
tetradic
#5D1D89 #89271D #49891D #1D7F89
square
#5D1D89 #89271D #49891D #1D7F89
split-complementary
#5D1D89 #7F891D #1D8927
monochromatic
#180824 #3B1256 #5D1D89 #7F28BC #9E48D8

Accessibility & contrast

On white

10.49
#5D1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1D89
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D89#FFFFFF#000000##FFFFFF
##5D1D891.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#553852
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1d89;
/* rgb */ color: rgb(93, 29, 137);
/* oklch */ color: oklch(39.0% 0.168 307.0);
Tailwind
colors: {
  custom: {
    50: '#9061ac',
    500: '#5d1d89',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d89;
$custom-light: #9061ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d89",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 275.556,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39013,
    "c": 0.1683,
    "h": 307
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#5D1D89
secondary
#76BA47
accent
#E84084
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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