#5D3BB1#5D3BB1

#5D3BB1 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.177 H 291.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5D3BB1
RGBrgb(93, 59, 177)
HSLhsl(257, 50%, 46%)
HSVhsv(257, 67%, 69%)
CMYKcmyk(47.5%, 66.7%, 0%, 30.6%)
CIE-LABlab(35.26, 43.18, -57.80)
CIE-LCHlch(35.26, 72.15, 306.76°)
OKLaboklab(46.06% 0.0637 -0.1655)
OKLCHoklch(46.06% 0.177 291)
XYZxyz(14.0117, 8.6289, 42.5137)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3BB1 #8FB13B
analogous
#3B54B1 #5D3BB1 #983BB1
triadic
#5D3BB1 #B15D3B #3BB15D
tetradic
#5D3BB1 #B13B54 #8FB13B #3BB198
square
#5D3BB1 #B13B54 #8FB13B #3BB198
split-complementary
#5D3BB1 #B1983B #54B13B
monochromatic
#2D1C55 #452C83 #5D3BB1 #7E5FCA #A38DD9

Accessibility & contrast

On white

7.70
#5D3BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5D3BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3BB1
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3BB1#FFFFFF#000000##FFFFFF
##5D3BB11.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#435871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3bb1;
/* rgb */ color: rgb(93, 59, 177);
/* oklch */ color: oklch(46.1% 0.177 291.0);
Tailwind
colors: {
  custom: {
    50: '#9273c9',
    500: '#5d3bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3bb1;
$custom-light: #9273c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3bb1",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 257.288,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.17735,
    "h": 291
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

primary
#5D3BB1
secondary
#B1C484
accent
#DA4EB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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