#5B3CB3#5B3CB3

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

Color values

HEX#5B3CB3
RGBrgb(91, 60, 179)
HSLhsl(256, 50%, 47%)
HSVhsv(256, 66%, 70%)
CMYKcmyk(49.2%, 66.5%, 0%, 29.8%)
CIE-LABlab(35.42, 42.83, -58.74)
CIE-LCHlch(35.42, 72.69, 306.10°)
OKLaboklab(46.18% 0.0596 -0.1683)
OKLCHoklch(46.18% 0.179 289.5)
XYZxyz(14.0646, 8.7100, 43.5792)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB3 #94B33C
analogous
#3C59B3 #5B3CB3 #973CB3
triadic
#5B3CB3 #B35B3C #3CB35B
tetradic
#5B3CB3 #B33C59 #94B33C #3CB397
square
#5B3CB3 #B33C59 #94B33C #3CB397
split-complementary
#5B3CB3 #B3973C #59B33C
monochromatic
#2C1D57 #442D85 #5B3CB3 #7D62CA #A390DA

Accessibility & contrast

On white

7.66
#5B3CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B3CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB3
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB3#FFFFFF#000000##FFFFFF
##5B3CB31.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#3D5972
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3cb3;
/* rgb */ color: rgb(91, 60, 179);
/* oklch */ color: oklch(46.2% 0.179 289.5);
Tailwind
colors: {
  custom: {
    50: '#9174cb',
    500: '#5b3cb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb3;
$custom-light: #9174cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb3",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 179
  },
  "hsl": {
    "h": 255.63,
    "s": 49.791,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46176,
    "c": 0.17857,
    "h": 289.5
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#5B3CB3
secondary
#B4C586
accent
#D94EB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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