#5B47D8#5B47D8

#5B47D8 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.9% C 0.211 H 282.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5B47D8
RGBrgb(91, 71, 216)
HSLhsl(248, 65%, 56%)
HSVhsv(248, 67%, 85%)
CMYKcmyk(57.9%, 67.1%, 0%, 15.3%)
CIE-LABlab(40.71, 47.68, -71.66)
CIE-LCHlch(40.71, 86.07, 303.64°)
OKLaboklab(50.93% 0.0444 -0.2063)
OKLCHoklch(50.93% 0.211 282.2)
XYZxyz(18.9584, 11.6872, 66.2093)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47D8 #C4D847
analogous
#477CD8 #5B47D8 #A447D8
triadic
#5B47D8 #D85B47 #47D85B
tetradic
#5B47D8 #D8477C #C4D847 #47D8A4
square
#5B47D8 #D8477C #C4D847 #47D8A4
split-complementary
#5B47D8 #D8A447 #7CD847
monochromatic
#2C1D88 #3C27BA #5B47D8 #8879E3 #B5ACED

Accessibility & contrast

On white

6.29
#5B47D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5B47D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47D8
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47D8#FFFFFF#000000##FFFFFF
##5B47D81.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#005BD5
Tritanopia (blue-blind)
#0C6D8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b47d8;
/* rgb */ color: rgb(91, 71, 216);
/* oklch */ color: oklch(50.9% 0.211 282.2);
Tailwind
colors: {
  custom: {
    50: '#967ce5',
    500: '#5b47d8',
    950: '#000000',
  },
}
SCSS
$custom: #5b47d8;
$custom-light: #967ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47d8",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 248.276,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50929,
    "c": 0.211,
    "h": 282.2
  },
  "luminance": 0.11688
}

Semantic roles & 50–950 ramp

primary
#5B47D8
secondary
#D3DBA0
accent
#E840D1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B47D8

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

Preview Lab → · Contrast checker → · Palette generator →

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