#5B3CBD#5B3CBD

#5B3CBD is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.191 H 287.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5B3CBD
RGBrgb(91, 60, 189)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 74%)
CMYKcmyk(51.9%, 68.3%, 0%, 25.9%)
CIE-LABlab(36.23, 45.74, -63.31)
CIE-LCHlch(36.23, 78.11, 305.85°)
OKLaboklab(47.01% 0.0581 -0.1818)
OKLCHoklch(47.01% 0.191 287.7)
XYZxyz(15.1129, 9.1293, 49.1000)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CBD #9EBD3C
analogous
#3C5EBD #5B3CBD #9C3CBD
triadic
#5B3CBD #BD5B3C #3CBD5B
tetradic
#5B3CBD #BD3C5E #9EBD3C #3CBD9C
square
#5B3CBD #BD3C5E #9EBD3C #3CBD9C
split-complementary
#5B3CBD #BD9C3C #5EBD3C
monochromatic
#2E1F60 #452D8F #5B3CBD #8067CF #A796DE

Accessibility & contrast

On white

7.43
#5B3CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5B3CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CBD
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CBD#FFFFFF#000000##FFFFFF
##5B3CBD1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#365D78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3cbd;
/* rgb */ color: rgb(91, 60, 189);
/* oklch */ color: oklch(47.0% 0.191 287.7);
Tailwind
colors: {
  custom: {
    50: '#9274d2',
    500: '#5b3cbd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cbd;
$custom-light: #9274d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cbd",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 254.419,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47013,
    "c": 0.19085,
    "h": 287.7
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#5B3CBD
secondary
#BAC98C
accent
#DB4DB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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