#5B3EBC#5B3EBC

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

Color values

HEX#5B3EBC
RGBrgb(91, 62, 188)
HSLhsl(254, 50%, 49%)
HSVhsv(254, 67%, 74%)
CMYKcmyk(51.6%, 67%, 0%, 26.3%)
CIE-LABlab(36.55, 44.34, -62.20)
CIE-LCHlch(36.55, 76.39, 305.48°)
OKLaboklab(47.22% 0.0564 -0.1785)
OKLCHoklch(47.22% 0.187 287.5)
XYZxyz(15.1114, 9.2995, 48.5659)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EBC #9FBC3E
analogous
#3E60BC #5B3EBC #9A3EBC
triadic
#5B3EBC #BC5B3E #3EBC5B
tetradic
#5B3EBC #BC3E60 #9FBC3E #3EBC9A
square
#5B3EBC #BC3E60 #9FBC3E #3EBC9A
split-complementary
#5B3EBC #BC9A3E #60BC3E
monochromatic
#2E2060 #452F8E #5B3EBC #816ACE #A798DD

Accessibility & contrast

On white

7.34
#5B3EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3EBC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EBC#FFFFFF#000000##FFFFFF
##5B3EBC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#375E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3ebc;
/* rgb */ color: rgb(91, 62, 188);
/* oklch */ color: oklch(47.2% 0.187 287.5);
Tailwind
colors: {
  custom: {
    50: '#9275d1',
    500: '#5b3ebc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ebc;
$custom-light: #9275d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ebc",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 188
  },
  "hsl": {
    "h": 253.81,
    "s": 50.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47219,
    "c": 0.18721,
    "h": 287.5
  },
  "luminance": 0.093
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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