#5B3FBE#5B3FBE

#5B3FBE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.188 H 287.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5B3FBE
RGBrgb(91, 63, 190)
HSLhsl(253, 50%, 50%)
HSVhsv(253, 67%, 75%)
CMYKcmyk(52.1%, 66.8%, 0%, 25.5%)
CIE-LABlab(36.92, 44.37, -62.77)
CIE-LCHlch(36.92, 76.87, 305.25°)
OKLaboklab(47.54% 0.0552 -0.1802)
OKLCHoklch(47.54% 0.188 287)
XYZxyz(15.3834, 9.4961, 49.7276)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FBE #A2BE3F
analogous
#3F63BE #5B3FBE #9A3FBE
triadic
#5B3FBE #BE5B3F #3FBE5B
tetradic
#5B3FBE #BE3F63 #A2BE3F #3FBE9A
square
#5B3FBE #BE3F63 #A2BE3F #3FBE9A
split-complementary
#5B3FBE #BE9A3F #63BE3F
monochromatic
#2F2162 #453090 #5B3FBE #826CCE #A99ADD

Accessibility & contrast

On white

7.24
#5B3FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B3FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FBE
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FBE#FFFFFF#000000##FFFFFF
##5B3FBE1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#355F79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3fbe;
/* rgb */ color: rgb(91, 63, 190);
/* oklch */ color: oklch(47.5% 0.188 287.0);
Tailwind
colors: {
  custom: {
    50: '#9276d3',
    500: '#5b3fbe',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fbe;
$custom-light: #9276d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fbe",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 190
  },
  "hsl": {
    "h": 253.228,
    "s": 50.198,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47535,
    "c": 0.18846,
    "h": 287
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#5B3FBE
secondary
#BDC98F
accent
#DA4EBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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