#5B47D9#5B47D9

#5B47D9 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.212 H 282.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5B47D9
RGBrgb(91, 71, 217)
HSLhsl(248, 66%, 56%)
HSVhsv(248, 67%, 85%)
CMYKcmyk(58.1%, 67.3%, 0%, 14.9%)
CIE-LABlab(40.80, 47.98, -72.09)
CIE-LCHlch(40.80, 86.60, 303.65°)
OKLaboklab(51.02% 0.0443 -0.2075)
OKLCHoklch(51.02% 0.212 282)
XYZxyz(19.0881, 11.7391, 66.8922)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47D9 #C5D947
analogous
#477CD9 #5B47D9 #A447D9
triadic
#5B47D9 #D95B47 #47D95B
tetradic
#5B47D9 #D9477C #C5D947 #47D9A4
square
#5B47D9 #D9477C #C5D947 #47D9A4
split-complementary
#5B47D9 #D9A447 #7CD947
monochromatic
#2B1C89 #3B27BC #5B47D9 #887AE3 #B5ACEE

Accessibility & contrast

On white

6.27
#5B47D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5B47D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47D9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47D9#FFFFFF#000000##FFFFFF
##5B47D91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#086D8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b47d9;
/* rgb */ color: rgb(91, 71, 217);
/* oklch */ color: oklch(51.0% 0.212 282.0);
Tailwind
colors: {
  custom: {
    50: '#967ce6',
    500: '#5b47d9',
    950: '#000000',
  },
}
SCSS
$custom: #5b47d9;
$custom-light: #967ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47d9",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 248.219,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51015,
    "c": 0.21222,
    "h": 282
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#5B47D9
secondary
#D4DCA0
accent
#E93FD1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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