#5B3FBC#5B3FBC

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

Color values

HEX#5B3FBC
RGBrgb(91, 63, 188)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 66%, 74%)
CMYKcmyk(51.6%, 66.5%, 0%, 26.3%)
CIE-LABlab(36.76, 43.78, -61.86)
CIE-LCHlch(36.76, 75.79, 305.29°)
OKLaboklab(47.37% 0.0554 -0.1775)
OKLCHoklch(47.37% 0.186 287.3)
XYZxyz(15.1663, 9.4093, 48.5842)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FBC #A0BC3F
analogous
#3F62BC #5B3FBC #9A3FBC
triadic
#5B3FBC #BC5B3F #3FBC5B
tetradic
#5B3FBC #BC3F62 #A0BC3F #3FBC9A
square
#5B3FBC #BC3F62 #A0BC3F #3FBC9A
split-complementary
#5B3FBC #BC9A3F #62BC3F
monochromatic
#2F2060 #45308E #5B3FBC #816BCD #A899DD

Accessibility & contrast

On white

7.29
#5B3FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3FBC
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FBC#FFFFFF#000000##FFFFFF
##5B3FBC1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3fbc;
/* rgb */ color: rgb(91, 63, 188);
/* oklch */ color: oklch(47.4% 0.186 287.3);
Tailwind
colors: {
  custom: {
    50: '#9276d1',
    500: '#5b3fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fbc;
$custom-light: #9276d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fbc",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 188
  },
  "hsl": {
    "h": 253.44,
    "s": 49.801,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47368,
    "c": 0.18599,
    "h": 287.3
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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