#5D3391#5D3391

#5D3391 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.149 H 300.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5D3391
RGBrgb(93, 51, 145)
HSLhsl(267, 48%, 38%)
HSVhsv(267, 65%, 57%)
CMYKcmyk(35.9%, 64.8%, 0%, 43.1%)
CIE-LABlab(31.21, 38.76, -45.05)
CIE-LCHlch(31.21, 59.43, 310.71°)
OKLaboklab(42.37% 0.0761 -0.128)
OKLCHoklch(42.37% 0.149 300.7)
XYZxyz(10.8076, 6.7391, 27.5140)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3391 #679133
analogous
#333891 #5D3391 #8C3391
triadic
#5D3391 #915D33 #33915D
tetradic
#5D3391 #913338 #679133 #33918C
square
#5D3391 #913338 #679133 #33918C
split-complementary
#5D3391 #918C33 #389133
monochromatic
#231336 #402364 #5D3391 #7A44BD #9A71CD

Accessibility & contrast

On white

8.94
#5D3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3391
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3391#FFFFFF#000000##FFFFFF
##5D33911.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#0D498F
Tritanopia (blue-blind)
#52485D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d3391;
/* rgb */ color: rgb(93, 51, 145);
/* oklch */ color: oklch(42.4% 0.149 300.7);
Tailwind
colors: {
  custom: {
    50: '#8f6db2',
    500: '#5d3391',
    950: '#000000',
  },
}
SCSS
$custom: #5d3391;
$custom-light: #8f6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3391",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 266.809,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4237,
    "c": 0.14895,
    "h": 300.7
  },
  "luminance": 0.06739
}

Semantic roles & 50–950 ramp

primary
#5D3391
secondary
#94B56B
accent
#D8509B
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3391

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

Preview Lab → · Contrast checker → · Palette generator →

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