#5B3DBE#5B3DBE

#5B3DBE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.191 H 287.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5B3DBE
RGBrgb(91, 61, 190)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(52.1%, 67.9%, 0%, 25.5%)
CIE-LABlab(36.52, 45.48, -63.44)
CIE-LCHlch(36.52, 78.06, 305.64°)
OKLaboklab(47.24% 0.0571 -0.1821)
OKLCHoklch(47.24% 0.191 287.4)
XYZxyz(15.2747, 9.2786, 49.6913)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DBE #A0BE3D
analogous
#3D60BE #5B3DBE #9B3DBE
triadic
#5B3DBE #BE5B3D #3DBE5B
tetradic
#5B3DBE #BE3D60 #A0BE3D #3DBE9B
square
#5B3DBE #BE3D60 #A0BE3D #3DBE9B
split-complementary
#5B3DBE #BE9B3D #60BE3D
monochromatic
#2F1F61 #452E90 #5B3DBE #8169CF #A898DE

Accessibility & contrast

On white

7.35
#5B3DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B3DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DBE
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DBE#FFFFFF#000000##FFFFFF
##5B3DBE1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#355E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3dbe;
/* rgb */ color: rgb(91, 61, 190);
/* oklch */ color: oklch(47.2% 0.191 287.4);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5b3dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dbe;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dbe",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 190
  },
  "hsl": {
    "h": 253.953,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.19088,
    "h": 287.4
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#5B3DBE
secondary
#BBC98D
accent
#DB4DBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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