#5B47BB#5B47BB

#5B47BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.5% C 0.175 H 285.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5B47BB
RGBrgb(91, 71, 187)
HSLhsl(250, 46%, 51%)
HSVhsv(250, 62%, 73%)
CMYKcmyk(51.3%, 62%, 0%, 26.7%)
CIE-LABlab(38.41, 38.86, -58.60)
CIE-LCHlch(38.41, 70.31, 303.55°)
OKLaboklab(48.54% 0.0475 -0.1679)
OKLCHoklch(48.54% 0.175 285.8)
XYZxyz(15.5346, 10.3177, 48.1770)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47BB #A7BB47
analogous
#476DBB #5B47BB #9547BB
triadic
#5B47BB #BB5B47 #47BB5B
tetradic
#5B47BB #BB476D #A7BB47 #47BB95
square
#5B47BB #BB476D #A7BB47 #47BB95
split-complementary
#5B47BB #BB9547 #6DBB47
monochromatic
#2F2563 #453590 #5B47BB #8374CC #ABA0DC

Accessibility & contrast

On white

6.85
#5B47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5B47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47BB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47BB#FFFFFF#000000##FFFFFF
##5B47BB1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#37637A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b47bb;
/* rgb */ color: rgb(91, 71, 187);
/* oklch */ color: oklch(48.5% 0.175 285.8);
Tailwind
colors: {
  custom: {
    50: '#917bd0',
    500: '#5b47bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b47bb;
$custom-light: #917bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47bb",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 250.345,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48537,
    "c": 0.17451,
    "h": 285.8
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#5B47BB
secondary
#C0C995
accent
#D652BF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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