#5D3CB1#5D3CB1

#5D3CB1 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.176 H 290.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5D3CB1
RGBrgb(93, 60, 177)
HSLhsl(257, 49%, 46%)
HSVhsv(257, 66%, 69%)
CMYKcmyk(47.5%, 66.1%, 0%, 30.6%)
CIE-LABlab(35.46, 42.63, -57.47)
CIE-LCHlch(35.46, 71.55, 306.57°)
OKLaboklab(46.21% 0.0627 -0.1645)
OKLCHoklch(46.21% 0.176 290.8)
XYZxyz(14.0636, 8.7327, 42.5310)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CB1 #90B13C
analogous
#3C56B1 #5D3CB1 #983CB1
triadic
#5D3CB1 #B15D3C #3CB15D
tetradic
#5D3CB1 #B13C56 #90B13C #3CB198
square
#5D3CB1 #B13C56 #90B13C #3CB198
split-complementary
#5D3CB1 #B1983C #56B13C
monochromatic
#2D1D56 #452D83 #5D3CB1 #7E61C9 #A38FD9

Accessibility & contrast

On white

7.65
#5D3CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3CB1
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CB1#FFFFFF#000000##FFFFFF
##5D3CB11.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d3cb1;
/* rgb */ color: rgb(93, 60, 177);
/* oklch */ color: oklch(46.2% 0.176 290.8);
Tailwind
colors: {
  custom: {
    50: '#9274c9',
    500: '#5d3cb1',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cb1;
$custom-light: #9274c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cb1",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 256.923,
    "s": 49.367,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46207,
    "c": 0.17607,
    "h": 290.8
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D3CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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