#5B3FBF#5B3FBF

#5B3FBF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.190 H 286.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5B3FBF
RGBrgb(91, 63, 191)
HSLhsl(253, 50%, 50%)
HSVhsv(253, 67%, 75%)
CMYKcmyk(52.4%, 67%, 0%, 25.1%)
CIE-LABlab(37.00, 44.67, -63.23)
CIE-LCHlch(37.00, 77.41, 305.24°)
OKLaboklab(47.62% 0.055 -0.1815)
OKLCHoklch(47.62% 0.19 286.9)
XYZxyz(15.4931, 9.5400, 50.3051)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FBF #A3BF3F
analogous
#3F63BF #5B3FBF #9B3FBF
triadic
#5B3FBF #BF5B3F #3FBF5B
tetradic
#5B3FBF #BF3F63 #A3BF3F #3FBF9B
square
#5B3FBF #BF3F63 #A3BF3F #3FBF9B
split-complementary
#5B3FBF #BF9B3F #63BF3F
monochromatic
#2F2163 #453091 #5B3FBF #826DCF #A99BDE

Accessibility & contrast

On white

7.22
#5B3FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B3FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FBF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FBF#FFFFFF#000000##FFFFFF
##5B3FBF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#345F7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3fbf;
/* rgb */ color: rgb(91, 63, 191);
/* oklch */ color: oklch(47.6% 0.190 286.9);
Tailwind
colors: {
  custom: {
    50: '#9276d3',
    500: '#5b3fbf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fbf;
$custom-light: #9276d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fbf",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 191
  },
  "hsl": {
    "h": 253.125,
    "s": 50.394,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.18969,
    "h": 286.9
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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