#5B3EBD#5B3EBD

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

Color values

HEX#5B3EBD
RGBrgb(91, 62, 189)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 67%, 74%)
CMYKcmyk(51.9%, 67.2%, 0%, 25.9%)
CIE-LABlab(36.64, 44.63, -62.65)
CIE-LCHlch(36.64, 76.93, 305.47°)
OKLaboklab(47.3% 0.0563 -0.1798)
OKLCHoklch(47.3% 0.188 287.4)
XYZxyz(15.2196, 9.3428, 49.1356)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EBD #A0BD3E
analogous
#3E60BD #5B3EBD #9B3EBD
triadic
#5B3EBD #BD5B3E #3EBD5B
tetradic
#5B3EBD #BD3E60 #A0BD3E #3EBD9B
square
#5B3EBD #BD3E60 #A0BD3E #3EBD9B
split-complementary
#5B3EBD #BD9B3E #60BD3E
monochromatic
#2F2061 #452F8F #5B3EBD #816ACE #A898DD

Accessibility & contrast

On white

7.32
#5B3EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B3EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EBD
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EBD#FFFFFF#000000##FFFFFF
##5B3EBD1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#365E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3ebd;
/* rgb */ color: rgb(91, 62, 189);
/* oklch */ color: oklch(47.3% 0.188 287.4);
Tailwind
colors: {
  custom: {
    50: '#9275d2',
    500: '#5b3ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ebd;
$custom-light: #9275d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ebd",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 189
  },
  "hsl": {
    "h": 253.701,
    "s": 50.598,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.18844,
    "h": 287.4
  },
  "luminance": 0.09344
}

Semantic roles & 50–950 ramp

primary
#5B3EBD
secondary
#BBC98E
accent
#DA4EBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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