#5B47D5#5B47D5

#5B47D5 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.7% C 0.207 H 282.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5B47D5
RGBrgb(91, 71, 213)
HSLhsl(248, 63%, 56%)
HSVhsv(248, 67%, 84%)
CMYKcmyk(57.3%, 66.7%, 0%, 16.5%)
CIE-LABlab(40.46, 46.77, -70.34)
CIE-LCHlch(40.46, 84.47, 303.62°)
OKLaboklab(50.67% 0.0448 -0.2024)
OKLCHoklch(50.67% 0.207 282.5)
XYZxyz(18.5741, 11.5335, 64.1853)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47D5 #C1D547
analogous
#477AD5 #5B47D5 #A247D5
triadic
#5B47D5 #D55B47 #47D55B
tetradic
#5B47D5 #D5477A #C1D547 #47D5A2
square
#5B47D5 #D5477A #C1D547 #47D5A2
split-complementary
#5B47D5 #D5A247 #7AD547
monochromatic
#2C1E84 #3D29B5 #5B47D5 #8779E0 #B4ABEC

Accessibility & contrast

On white

6.35
#5B47D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5B47D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47D5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47D5#FFFFFF#000000##FFFFFF
##5B47D51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#156C88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b47d5;
/* rgb */ color: rgb(91, 71, 213);
/* oklch */ color: oklch(50.7% 0.207 282.5);
Tailwind
colors: {
  custom: {
    50: '#957ce3',
    500: '#5b47d5',
    950: '#000000',
  },
}
SCSS
$custom: #5b47d5;
$custom-light: #957ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47d5",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 248.451,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50672,
    "c": 0.20733,
    "h": 282.5
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#5B47D5
secondary
#D1D99E
accent
#E642CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B47D5

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

Preview Lab → · Contrast checker → · Palette generator →

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