#5D3CB9#5D3CB9

#5D3CB9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.186 H 289.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5D3CB9
RGBrgb(93, 60, 185)
HSLhsl(256, 51%, 48%)
HSVhsv(256, 68%, 73%)
CMYKcmyk(49.7%, 67.6%, 0%, 27.5%)
CIE-LABlab(36.10, 44.93, -61.16)
CIE-LCHlch(36.10, 75.89, 306.30°)
OKLaboklab(46.87% 0.0616 -0.1754)
OKLCHoklch(46.87% 0.186 289.3)
XYZxyz(14.8845, 9.0610, 46.8542)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CB9 #98B93C
analogous
#3C59B9 #5D3CB9 #9B3CB9
triadic
#5D3CB9 #B95D3C #3CB95D
tetradic
#5D3CB9 #B93C59 #98B93C #3CB99B
square
#5D3CB9 #B93C59 #98B93C #3CB99B
split-complementary
#5D3CB9 #B99B3C #59B93C
monochromatic
#2F1E5D #462D8B #5D3CB9 #8165CD #A793DC

Accessibility & contrast

On white

7.47
#5D3CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5D3CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CB9
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CB9#FFFFFF#000000##FFFFFF
##5D3CB91.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#3D5B75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d3cb9;
/* rgb */ color: rgb(93, 60, 185);
/* oklch */ color: oklch(46.9% 0.186 289.3);
Tailwind
colors: {
  custom: {
    50: '#9374cf',
    500: '#5d3cb9',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cb9;
$custom-light: #9374cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cb9",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 185
  },
  "hsl": {
    "h": 255.84,
    "s": 51.02,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46865,
    "c": 0.18589,
    "h": 289.3
  },
  "luminance": 0.09062
}

Semantic roles & 50–950 ramp

primary
#5D3CB9
secondary
#B7C789
accent
#DA4DB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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