#5B47DC#5B47DC

#5B47DC is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.3% C 0.216 H 281.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5B47DC
RGBrgb(91, 71, 220)
HSLhsl(248, 68%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(58.6%, 67.7%, 0%, 13.7%)
CIE-LABlab(41.05, 48.89, -73.40)
CIE-LCHlch(41.05, 88.19, 303.67°)
OKLaboklab(51.28% 0.0439 -0.2114)
OKLCHoklch(51.28% 0.216 281.7)
XYZxyz(19.4819, 11.8966, 68.9659)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47DC #C8DC47
analogous
#477DDC #5B47DC #A647DC
triadic
#5B47DC #DC5B47 #47DC5B
tetradic
#5B47DC #DC477D #C8DC47 #47DCA6
square
#5B47DC #DC477D #C8DC47 #47DCA6
split-complementary
#5B47DC #DCA647 #7DDC47
monochromatic
#2A1B8E #3A25C1 #5B47DC #897AE6 #B7AEF0

Accessibility & contrast

On white

6.21
#5B47DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5B47DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47DC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47DC#FFFFFF#000000##FFFFFF
##5B47DC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005BD9
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b47dc;
/* rgb */ color: rgb(91, 71, 220);
/* oklch */ color: oklch(51.3% 0.216 281.7);
Tailwind
colors: {
  custom: {
    50: '#967ce8',
    500: '#5b47dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b47dc;
$custom-light: #967ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47dc",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 248.054,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51275,
    "c": 0.21587,
    "h": 281.7
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#5B47DC
secondary
#D6DEA1
accent
#EB3DD4
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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