#5C3DB5#5C3DB5

#5C3DB5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.180 H 289.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5C3DB5
RGBrgb(92, 61, 181)
HSLhsl(256, 50%, 47%)
HSVhsv(256, 66%, 71%)
CMYKcmyk(49.2%, 66.3%, 0%, 29%)
CIE-LABlab(35.88, 43.03, -59.16)
CIE-LCHlch(35.88, 73.16, 306.03°)
OKLaboklab(46.59% 0.0597 -0.1695)
OKLCHoklch(46.59% 0.18 289.4)
XYZxyz(14.4205, 8.9484, 44.6745)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3DB5 #96B53D
analogous
#3D5AB5 #5C3DB5 #983DB5
triadic
#5C3DB5 #B55C3D #3DB55C
tetradic
#5C3DB5 #B53D5A #96B53D #3DB598
square
#5C3DB5 #B53D5A #96B53D #3DB598
split-complementary
#5C3DB5 #B5983D #5AB53D
monochromatic
#2D1E59 #452E87 #5C3DB5 #7F64CB #A592DA

Accessibility & contrast

On white

7.53
#5C3DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5C3DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3DB5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3DB5#FFFFFF#000000##FFFFFF
##5C3DB51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#3E5A74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c3db5;
/* rgb */ color: rgb(92, 61, 181);
/* oklch */ color: oklch(46.6% 0.180 289.4);
Tailwind
colors: {
  custom: {
    50: '#9274cc',
    500: '#5c3db5',
    950: '#000000',
  },
}
SCSS
$custom: #5c3db5;
$custom-light: #9274cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3db5",
  "rgb": {
    "r": 92,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 255.5,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46585,
    "c": 0.17975,
    "h": 289.4
  },
  "luminance": 0.08949
}

Semantic roles & 50–950 ramp

primary
#5C3DB5
secondary
#B6C588
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5C3DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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