#5D3CB2#5D3CB2

#5D3CB2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.177 H 290.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5D3CB2
RGBrgb(93, 60, 178)
HSLhsl(257, 50%, 47%)
HSVhsv(257, 66%, 70%)
CMYKcmyk(47.8%, 66.3%, 0%, 30.2%)
CIE-LABlab(35.54, 42.92, -57.93)
CIE-LCHlch(35.54, 72.10, 306.53°)
OKLaboklab(46.29% 0.0625 -0.1659)
OKLCHoklch(46.29% 0.177 290.7)
XYZxyz(14.1637, 8.7727, 43.0579)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CB2 #91B23C
analogous
#3C56B2 #5D3CB2 #983CB2
triadic
#5D3CB2 #B25D3C #3CB25D
tetradic
#5D3CB2 #B23C56 #91B23C #3CB298
square
#5D3CB2 #B23C56 #91B23C #3CB298
split-complementary
#5D3CB2 #B2983C #56B23C
monochromatic
#2D1D56 #452D84 #5D3CB2 #7F61CA #A48FD9

Accessibility & contrast

On white

7.62
#5D3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5D3CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CB2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CB2#FFFFFF#000000##FFFFFF
##5D3CB21.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#425972
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3cb2;
/* rgb */ color: rgb(93, 60, 178);
/* oklch */ color: oklch(46.3% 0.177 290.7);
Tailwind
colors: {
  custom: {
    50: '#9274ca',
    500: '#5d3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cb2;
$custom-light: #9274ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cb2",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 256.78,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46288,
    "c": 0.1773,
    "h": 290.7
  },
  "luminance": 0.08773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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