#5B47BE#5B47BE

#5B47BE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.178 H 285.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5B47BE
RGBrgb(91, 71, 190)
HSLhsl(250, 48%, 51%)
HSVhsv(250, 63%, 75%)
CMYKcmyk(52.1%, 62.6%, 0%, 25.5%)
CIE-LABlab(38.63, 39.77, -59.99)
CIE-LCHlch(38.63, 71.97, 303.55°)
OKLaboklab(48.78% 0.0473 -0.172)
OKLCHoklch(48.78% 0.178 285.4)
XYZxyz(15.8591, 10.4475, 49.8861)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47BE #AABE47
analogous
#476EBE #5B47BE #9647BE
triadic
#5B47BE #BE5B47 #47BE5B
tetradic
#5B47BE #BE476E #AABE47 #47BE96
square
#5B47BE #BE476E #AABE47 #47BE96
split-complementary
#5B47BE #BE9647 #6EBE47
monochromatic
#2F2466 #443494 #5B47BE #8374CE #ACA1DE

Accessibility & contrast

On white

6.80
#5B47BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5B47BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47BE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47BE#FFFFFF#000000##FFFFFF
##5B47BE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#34647C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b47be;
/* rgb */ color: rgb(91, 71, 190);
/* oklch */ color: oklch(48.8% 0.178 285.4);
Tailwind
colors: {
  custom: {
    50: '#927bd2',
    500: '#5b47be',
    950: '#000000',
  },
}
SCSS
$custom: #5b47be;
$custom-light: #927bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47be",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 250.084,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48775,
    "c": 0.17839,
    "h": 285.4
  },
  "luminance": 0.10448
}

Semantic roles & 50–950 ramp

primary
#5B47BE
secondary
#C2CB96
accent
#D750C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B47BE

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

Preview Lab → · Contrast checker → · Palette generator →

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