#5D3BB5#5D3BB5

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

Color values

HEX#5D3BB5
RGBrgb(93, 59, 181)
HSLhsl(257, 51%, 47%)
HSVhsv(257, 67%, 71%)
CMYKcmyk(48.6%, 67.4%, 0%, 29%)
CIE-LABlab(35.58, 44.33, -59.65)
CIE-LCHlch(35.58, 74.32, 306.62°)
OKLaboklab(46.39% 0.0631 -0.171)
OKLCHoklch(46.39% 0.182 290.3)
XYZxyz(14.4163, 8.7907, 44.6443)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3BB5 #93B53B
analogous
#3B56B5 #5D3BB5 #9A3BB5
triadic
#5D3BB5 #B55D3B #3BB55D
tetradic
#5D3BB5 #B53B56 #93B53B #3BB59A
square
#5D3BB5 #B53B56 #93B53B #3BB59A
split-complementary
#5D3BB5 #B59A3B #56B53B
monochromatic
#2E1D59 #452C87 #5D3BB5 #7F62CC #A590DB

Accessibility & contrast

On white

7.61
#5D3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5D3BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3BB5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3BB5#FFFFFF#000000##FFFFFF
##5D3BB51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#405973
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3bb5;
/* rgb */ color: rgb(93, 59, 181);
/* oklch */ color: oklch(46.4% 0.182 290.3);
Tailwind
colors: {
  custom: {
    50: '#9373cc',
    500: '#5d3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5d3bb5;
$custom-light: #9373cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3bb5",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 256.721,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.18224,
    "h": 290.3
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#5D3BB5
secondary
#B4C686
accent
#DA4DB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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