#5B3CBB#5B3CBB

#5B3CBB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.188 H 288.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5B3CBB
RGBrgb(91, 60, 187)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 68%, 73%)
CMYKcmyk(51.3%, 67.9%, 0%, 26.7%)
CIE-LABlab(36.07, 45.16, -62.41)
CIE-LCHlch(36.07, 77.03, 305.89°)
OKLaboklab(46.84% 0.0584 -0.1791)
OKLCHoklch(46.84% 0.188 288.1)
XYZxyz(14.8973, 9.0430, 47.9646)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CBB #9CBB3C
analogous
#3C5CBB #5B3CBB #9A3CBB
triadic
#5B3CBB #BB5B3C #3CBB5B
tetradic
#5B3CBB #BB3C5C #9CBB3C #3CBB9A
square
#5B3CBB #BB3C5C #9CBB3C #3CBB9A
split-complementary
#5B3CBB #BB9A3C #5CBB3C
monochromatic
#2E1E5E #442D8D #5B3CBB #8066CE #A695DD

Accessibility & contrast

On white

7.48
#5B3CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5B3CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CBB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CBB#FFFFFF#000000##FFFFFF
##5B3CBB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#385C76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3cbb;
/* rgb */ color: rgb(91, 60, 187);
/* oklch */ color: oklch(46.8% 0.188 288.1);
Tailwind
colors: {
  custom: {
    50: '#9274d0',
    500: '#5b3cbb',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cbb;
$custom-light: #9274d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cbb",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 254.646,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.18841,
    "h": 288.1
  },
  "luminance": 0.09044
}

Semantic roles & 50–950 ramp

primary
#5B3CBB
secondary
#B9C88B
accent
#DB4DB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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