#5D2986#5D2986

#5D2986 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.150 H 306.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5D2986
RGBrgb(93, 41, 134)
HSLhsl(274, 53%, 34%)
HSVhsv(274, 69%, 53%)
CMYKcmyk(30.6%, 69.4%, 0%, 47.5%)
CIE-LABlab(28.47, 41.24, -42.66)
CIE-LCHlch(28.47, 59.34, 314.03°)
OKLaboklab(40.15% 0.0892 -0.1209)
OKLCHoklch(40.15% 0.15 306.4)
XYZxyz(9.6093, 5.6344, 23.1309)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2986 #528629
analogous
#2E2986 #5D2986 #862981
triadic
#5D2986 #865D29 #29865D
tetradic
#5D2986 #862E29 #528629 #298186
square
#5D2986 #862E29 #528629 #298186
split-complementary
#5D2986 #818629 #29862E
monochromatic
#1C0C28 #3C1B57 #5D2986 #7E37B5 #9B5CCD

Accessibility & contrast

On white

9.87
#5D2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2986
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2986#FFFFFF#000000##FFFFFF
##5D29861.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#0F4384
Tritanopia (blue-blind)
#563D54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2986;
/* rgb */ color: rgb(93, 41, 134);
/* oklch */ color: oklch(40.1% 0.150 306.4);
Tailwind
colors: {
  custom: {
    50: '#8f67aa',
    500: '#5d2986',
    950: '#000000',
  },
}
SCSS
$custom: #5d2986;
$custom-light: #8f67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2986",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 273.548,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40147,
    "c": 0.15027,
    "h": 306.4
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#5D2986
secondary
#80B358
accent
#DD4B8B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2986

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

Preview Lab → · Contrast checker → · Palette generator →

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