#5B3FBD#5B3FBD

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

Color values

HEX#5B3FBD
RGBrgb(91, 63, 189)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 67%, 74%)
CMYKcmyk(51.9%, 66.7%, 0%, 25.9%)
CIE-LABlab(36.84, 44.08, -62.32)
CIE-LCHlch(36.84, 76.33, 305.27°)
OKLaboklab(47.45% 0.0553 -0.1789)
OKLCHoklch(47.45% 0.187 287.2)
XYZxyz(15.2745, 9.4525, 49.1539)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FBD #A1BD3F
analogous
#3F62BD #5B3FBD #9A3FBD
triadic
#5B3FBD #BD5B3F #3FBD5B
tetradic
#5B3FBD #BD3F62 #A1BD3F #3FBD9A
square
#5B3FBD #BD3F62 #A1BD3F #3FBD9A
split-complementary
#5B3FBD #BD9A3F #62BD3F
monochromatic
#2F2061 #45308F #5B3FBD #816BCE #A899DD

Accessibility & contrast

On white

7.26
#5B3FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B3FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FBD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FBD#FFFFFF#000000##FFFFFF
##5B3FBD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#365E79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3fbd;
/* rgb */ color: rgb(91, 63, 189);
/* oklch */ color: oklch(47.5% 0.187 287.2);
Tailwind
colors: {
  custom: {
    50: '#9276d2',
    500: '#5b3fbd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fbd;
$custom-light: #9276d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fbd",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 189
  },
  "hsl": {
    "h": 253.333,
    "s": 50,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47451,
    "c": 0.18721,
    "h": 287.2
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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