#5D1884#5D1884

#5D1884 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.168 H 309.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5D1884
RGBrgb(93, 24, 132)
HSLhsl(278, 69%, 31%)
HSVhsv(278, 82%, 52%)
CMYKcmyk(29.5%, 81.8%, 0%, 48.2%)
CIE-LABlab(25.70, 48.18, -45.90)
CIE-LCHlch(25.70, 66.54, 316.39°)
OKLaboklab(38.14% 0.1068 -0.1303)
OKLCHoklch(38.14% 0.168 309.3)
XYZxyz(9.0048, 4.6465, 22.2478)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1884 #3F8418
analogous
#271884 #5D1884 #841875
triadic
#5D1884 #845D18 #18845D
tetradic
#5D1884 #842718 #3F8418 #187584
square
#5D1884 #842718 #3F8418 #187584
split-complementary
#5D1884 #758418 #188427
monochromatic
#14051C #390F50 #5D1884 #8121B8 #A13BDB

Accessibility & contrast

On white

10.89
#5D1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1884
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1884#FFFFFF#000000##FFFFFF
##5D18841.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#57344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1884;
/* rgb */ color: rgb(93, 24, 132);
/* oklch */ color: oklch(38.1% 0.168 309.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ea9',
    500: '#5d1884',
    950: '#000000',
  },
}
SCSS
$custom: #5d1884;
$custom-light: #8f5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1884",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 278.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.16848,
    "h": 309.3
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#5D1884
secondary
#6BB840
accent
#EC3C7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1884

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

Preview Lab → · Contrast checker → · Palette generator →

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