#5D3CB7#5D3CB7

#5D3CB7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.7% C 0.183 H 289.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5D3CB7
RGBrgb(93, 60, 183)
HSLhsl(256, 51%, 48%)
HSVhsv(256, 67%, 72%)
CMYKcmyk(49.2%, 67.2%, 0%, 28.2%)
CIE-LABlab(35.94, 44.35, -60.25)
CIE-LCHlch(35.94, 74.81, 306.36°)
OKLaboklab(46.7% 0.0619 -0.1727)
OKLCHoklch(46.7% 0.183 289.7)
XYZxyz(14.6749, 8.9772, 45.7501)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CB7 #96B73C
analogous
#3C58B7 #5D3CB7 #9B3CB7
triadic
#5D3CB7 #B75D3C #3CB75D
tetradic
#5D3CB7 #B73C58 #96B73C #3CB79B
square
#5D3CB7 #B73C58 #96B73C #3CB79B
split-complementary
#5D3CB7 #B79B3C #58B73C
monochromatic
#2E1E5B #462D89 #5D3CB7 #8064CC #A692DB

Accessibility & contrast

On white

7.51
#5D3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5D3CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CB7
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CB7#FFFFFF#000000##FFFFFF
##5D3CB71.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#3F5A74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d3cb7;
/* rgb */ color: rgb(93, 60, 183);
/* oklch */ color: oklch(46.7% 0.183 289.7);
Tailwind
colors: {
  custom: {
    50: '#9374ce',
    500: '#5d3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cb7;
$custom-light: #9374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cb7",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 256.098,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46699,
    "c": 0.18344,
    "h": 289.7
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#5D3CB7
secondary
#B6C688
accent
#DA4EB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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