#5B3FBB#5B3FBB

#5B3FBB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.185 H 287.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5B3FBB
RGBrgb(91, 63, 187)
HSLhsl(254, 50%, 49%)
HSVhsv(254, 66%, 73%)
CMYKcmyk(51.3%, 66.3%, 0%, 26.7%)
CIE-LABlab(36.68, 43.48, -61.41)
CIE-LCHlch(36.68, 75.24, 305.30°)
OKLaboklab(47.29% 0.0556 -0.1762)
OKLCHoklch(47.29% 0.185 287.5)
XYZxyz(15.0589, 9.3663, 48.0185)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FBB #9FBB3F
analogous
#3F61BB #5B3FBB #993FBB
triadic
#5B3FBB #BB5B3F #3FBB5B
tetradic
#5B3FBB #BB3F61 #9FBB3F #3FBB99
square
#5B3FBB #BB3F61 #9FBB3F #3FBB99
split-complementary
#5B3FBB #BB993F #61BB3F
monochromatic
#2E205F #45308D #5B3FBB #816ACD #A798DC

Accessibility & contrast

On white

7.31
#5B3FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B3FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FBB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FBB#FFFFFF#000000##FFFFFF
##5B3FBB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3fbb;
/* rgb */ color: rgb(91, 63, 187);
/* oklch */ color: oklch(47.3% 0.185 287.5);
Tailwind
colors: {
  custom: {
    50: '#9276d0',
    500: '#5b3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fbb;
$custom-light: #9276d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fbb",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 253.548,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.18474,
    "h": 287.5
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#5B3FBB
secondary
#BBC88E
accent
#D94FBA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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