#5B47D7#5B47D7

#5B47D7 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.8% C 0.210 H 282.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5B47D7
RGBrgb(91, 71, 215)
HSLhsl(248, 64%, 56%)
HSVhsv(248, 67%, 84%)
CMYKcmyk(57.7%, 67%, 0%, 15.7%)
CIE-LABlab(40.63, 47.38, -71.22)
CIE-LCHlch(40.63, 85.54, 303.63°)
OKLaboklab(50.84% 0.0446 -0.205)
OKLCHoklch(50.84% 0.21 282.3)
XYZxyz(18.8296, 11.6357, 65.5305)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47D7 #C3D747
analogous
#477BD7 #5B47D7 #A347D7
triadic
#5B47D7 #D75B47 #47D75B
tetradic
#5B47D7 #D7477B #C3D747 #47D7A3
square
#5B47D7 #D7477B #C3D747 #47D7A3
split-complementary
#5B47D7 #D7A347 #7BD747
monochromatic
#2C1D86 #3C28B9 #5B47D7 #8879E2 #B5ACED

Accessibility & contrast

On white

6.31
#5B47D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5B47D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47D7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47D7#FFFFFF#000000##FFFFFF
##5B47D71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DB
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#106C89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b47d7;
/* rgb */ color: rgb(91, 71, 215);
/* oklch */ color: oklch(50.8% 0.210 282.3);
Tailwind
colors: {
  custom: {
    50: '#967ce4',
    500: '#5b47d7',
    950: '#000000',
  },
}
SCSS
$custom: #5b47d7;
$custom-light: #967ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47d7",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 248.333,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.20978,
    "h": 282.3
  },
  "luminance": 0.11637
}

Semantic roles & 50–950 ramp

primary
#5B47D7
secondary
#D2DB9F
accent
#E741D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B47D7

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

Preview Lab → · Contrast checker → · Palette generator →

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