#5B3EBE#5B3EBE

#5B3EBE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.190 H 287.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5B3EBE
RGBrgb(91, 62, 190)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 67%, 75%)
CMYKcmyk(52.1%, 67.4%, 0%, 25.5%)
CIE-LABlab(36.72, 44.93, -63.11)
CIE-LCHlch(36.72, 77.47, 305.45°)
OKLaboklab(47.39% 0.0561 -0.1812)
OKLCHoklch(47.39% 0.19 287.2)
XYZxyz(15.3285, 9.3863, 49.7093)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EBE #A1BE3E
analogous
#3E61BE #5B3EBE #9B3EBE
triadic
#5B3EBE #BE5B3E #3EBE5B
tetradic
#5B3EBE #BE3E61 #A1BE3E #3EBE9B
square
#5B3EBE #BE3E61 #A1BE3E #3EBE9B
split-complementary
#5B3EBE #BE9B3E #61BE3E
monochromatic
#2F2062 #452F90 #5B3EBE #816BCF #A899DE

Accessibility & contrast

On white

7.30
#5B3EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B3EBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EBE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EBE#FFFFFF#000000##FFFFFF
##5B3EBE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3ebe;
/* rgb */ color: rgb(91, 62, 190);
/* oklch */ color: oklch(47.4% 0.190 287.2);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5b3ebe',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ebe;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ebe",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 190
  },
  "hsl": {
    "h": 253.594,
    "s": 50.794,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47387,
    "c": 0.18967,
    "h": 287.2
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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