#5B3CBE#5B3CBE

#5B3CBE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.192 H 287.6°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5B3CBE
RGBrgb(91, 60, 190)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(52.1%, 68.4%, 0%, 25.5%)
CIE-LABlab(36.31, 46.03, -63.77)
CIE-LCHlch(36.31, 78.64, 305.82°)
OKLaboklab(47.1% 0.058 -0.1831)
OKLCHoklch(47.1% 0.192 287.6)
XYZxyz(15.2218, 9.1728, 49.6737)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CBE #9FBE3C
analogous
#3C5EBE #5B3CBE #9C3CBE
triadic
#5B3CBE #BE5B3C #3CBE5B
tetradic
#5B3CBE #BE3C5E #9FBE3C #3CBE9C
square
#5B3CBE #BE3C5E #9FBE3C #3CBE9C
split-complementary
#5B3CBE #BE9C3C #5EBE3C
monochromatic
#2E1F61 #452D8F #5B3CBE #8168CF #A796DE

Accessibility & contrast

On white

7.41
#5B3CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3CBE
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CBE#FFFFFF#000000##FFFFFF
##5B3CBE1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#355D78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3cbe;
/* rgb */ color: rgb(91, 60, 190);
/* oklch */ color: oklch(47.1% 0.192 287.6);
Tailwind
colors: {
  custom: {
    50: '#9374d3',
    500: '#5b3cbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cbe;
$custom-light: #9374d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cbe",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 190
  },
  "hsl": {
    "h": 254.308,
    "s": 52,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47098,
    "c": 0.19207,
    "h": 287.6
  },
  "luminance": 0.09174
}

Semantic roles & 50–950 ramp

primary
#5B3CBE
secondary
#BBCA8C
accent
#DB4CB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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