#5B3BD9#5B3BD9

#5B3BD9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.225 H 283.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5B3BD9
RGBrgb(91, 59, 217)
HSLhsl(252, 68%, 54%)
HSVhsv(252, 73%, 85%)
CMYKcmyk(58.1%, 72.8%, 0%, 14.9%)
CIE-LABlab(38.48, 54.40, -75.89)
CIE-LCHlch(38.48, 93.38, 305.63°)
OKLaboklab(49.36% 0.0535 -0.2186)
OKLCHoklch(49.36% 0.225 283.8)
XYZxyz(18.3989, 10.3606, 66.6625)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BD9 #B9D93B
analogous
#3B6AD9 #5B3BD9 #AA3BD9
triadic
#5B3BD9 #D95B3B #3BD95B
tetradic
#5B3BD9 #D93B6A #B9D93B #3BD9AA
square
#5B3BD9 #D93B6A #B9D93B #3BD9AA
split-complementary
#5B3BD9 #D9AA3B #6AD93B
monochromatic
#2E1981 #4023B4 #5B3BD9 #866EE3 #B1A2ED

Accessibility & contrast

On white

6.84
#5B3BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5B3BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3BD9
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BD9#FFFFFF#000000##FFFFFF
##5B3BD91.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#0D6787
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3bd9;
/* rgb */ color: rgb(91, 59, 217);
/* oklch */ color: oklch(49.4% 0.225 283.8);
Tailwind
colors: {
  custom: {
    50: '#9774e6',
    500: '#5b3bd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bd9;
$custom-light: #9774e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bd9",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 217
  },
  "hsl": {
    "h": 252.152,
    "s": 67.521,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49363,
    "c": 0.2251,
    "h": 283.8
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#5B3BD9
secondary
#CCDA96
accent
#EA3DC7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B3BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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