#5B3BBE#5B3BBE

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

Color values

HEX#5B3BBE
RGBrgb(91, 59, 190)
HSLhsl(255, 53%, 49%)
HSVhsv(255, 69%, 75%)
CMYKcmyk(52.1%, 68.9%, 0%, 25.5%)
CIE-LABlab(36.12, 46.58, -64.09)
CIE-LCHlch(36.12, 79.23, 306.01°)
OKLaboklab(46.96% 0.0589 -0.184)
OKLCHoklch(46.96% 0.193 287.7)
XYZxyz(15.1699, 9.0690, 49.6564)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BBE #9EBE3B
analogous
#3B5DBE #5B3BBE #9D3BBE
triadic
#5B3BBE #BE5B3B #3BBE5B
tetradic
#5B3BBE #BE3B5D #9EBE3B #3BBE9D
square
#5B3BBE #BE3B5D #9EBE3B #3BBE9D
split-complementary
#5B3BBE #BE9D3B #5DBE3B
monochromatic
#2E1E61 #452C8F #5B3BBE #8067D0 #A795DE

Accessibility & contrast

On white

7.46
#5B3BBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3BBE
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BBE#FFFFFF#000000##FFFFFF
##5B3BBE1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3bbe;
/* rgb */ color: rgb(91, 59, 190);
/* oklch */ color: oklch(47.0% 0.193 287.7);
Tailwind
colors: {
  custom: {
    50: '#9373d3',
    500: '#5b3bbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bbe;
$custom-light: #9373d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bbe",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 190
  },
  "hsl": {
    "h": 254.656,
    "s": 52.61,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46956,
    "c": 0.19324,
    "h": 287.7
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#5B3BBE
secondary
#BACA8B
accent
#DC4CB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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