#5D1686#5D1686

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

Color values

HEX#5D1686
RGBrgb(93, 22, 134)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(30.6%, 83.6%, 0%, 47.5%)
CIE-LABlab(25.63, 49.32, -47.27)
CIE-LCHlch(25.63, 68.32, 316.22°)
OKLaboklab(38.14% 0.1078 -0.1344)
OKLCHoklch(38.14% 0.172 308.7)
XYZxyz(9.1033, 4.6224, 22.9623)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1686 #3F8616
analogous
#251686 #5D1686 #861677
triadic
#5D1686 #865D16 #16865D
tetradic
#5D1686 #862516 #3F8616 #167786
square
#5D1686 #862516 #3F8616 #167786
split-complementary
#5D1686 #778616 #168625
monochromatic
#14051D #390D51 #5D1686 #811FBB #A138DE

Accessibility & contrast

On white

10.91
#5D1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1686
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1686#FFFFFF#000000##FFFFFF
##5D16861.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#57344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1686;
/* rgb */ color: rgb(93, 22, 134);
/* oklch */ color: oklch(38.1% 0.172 308.7);
Tailwind
colors: {
  custom: {
    50: '#905eaa',
    500: '#5d1686',
    950: '#000000',
  },
}
SCSS
$custom: #5d1686;
$custom-light: #905eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1686",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 278.036,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38139,
    "c": 0.17228,
    "h": 308.7
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#5D1686
secondary
#6BBA3E
accent
#EF397C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1686

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

Preview Lab → · Contrast checker → · Palette generator →

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