#5D3DB1#5D3DB1

#5D3DB1 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.175 H 290.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5D3DB1
RGBrgb(93, 61, 177)
HSLhsl(257, 49%, 47%)
HSVhsv(257, 66%, 69%)
CMYKcmyk(47.5%, 65.5%, 0%, 30.6%)
CIE-LABlab(35.67, 42.07, -57.13)
CIE-LCHlch(35.67, 70.95, 306.37°)
OKLaboklab(46.36% 0.0616 -0.1635)
OKLCHoklch(46.36% 0.175 290.6)
XYZxyz(14.1165, 8.8384, 42.5486)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DB1 #91B13D
analogous
#3D57B1 #5D3DB1 #973DB1
triadic
#5D3DB1 #B15D3D #3DB15D
tetradic
#5D3DB1 #B13D57 #91B13D #3DB197
square
#5D3DB1 #B13D57 #91B13D #3DB197
split-complementary
#5D3DB1 #B1973D #57B13D
monochromatic
#2D1E56 #452D83 #5D3DB1 #7F62C9 #A490D9

Accessibility & contrast

On white

7.59
#5D3DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5D3DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DB1
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DB1#FFFFFF#000000##FFFFFF
##5D3DB11.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#425971
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3db1;
/* rgb */ color: rgb(93, 61, 177);
/* oklch */ color: oklch(46.4% 0.175 290.6);
Tailwind
colors: {
  custom: {
    50: '#9274c9',
    500: '#5d3db1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3db1;
$custom-light: #9274c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3db1",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 256.552,
    "s": 48.739,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46357,
    "c": 0.17477,
    "h": 290.6
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#5D3DB1
secondary
#B3C486
accent
#D850B3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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