#5B47E4#5B47E4

#5B47E4 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.226 H 280.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5B47E4
RGBrgb(91, 71, 228)
HSLhsl(248, 74%, 59%)
HSVhsv(248, 69%, 89%)
CMYKcmyk(60.1%, 68.9%, 0%, 10.6%)
CIE-LABlab(41.74, 51.31, -76.83)
CIE-LCHlch(41.74, 92.39, 303.74°)
OKLaboklab(51.98% 0.0426 -0.2214)
OKLCHoklch(51.98% 0.226 280.9)
XYZxyz(20.5668, 12.3306, 74.6800)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47E4 #D0E447
analogous
#4781E4 #5B47E4 #A947E4
triadic
#5B47E4 #E45B47 #47E45B
tetradic
#5B47E4 #E44781 #D0E447 #47E4A9
square
#5B47E4 #E44781 #D0E447 #47E4A9
split-complementary
#5B47E4 #E4A947 #81E447
monochromatic
#27179A #351ECF #5B47E4 #8B7CEC #BAB2F4

Accessibility & contrast

On white

6.06
#5B47E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5B47E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47E4
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47E4#FFFFFF#000000##FFFFFF
##5B47E41.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005DE1
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b47e4;
/* rgb */ color: rgb(91, 71, 228);
/* oklch */ color: oklch(52.0% 0.226 280.9);
Tailwind
colors: {
  custom: {
    50: '#987cee',
    500: '#5b47e4',
    950: '#000000',
  },
}
SCSS
$custom: #5b47e4;
$custom-light: #987cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47e4",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 247.643,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51977,
    "c": 0.2255,
    "h": 280.9
  },
  "luminance": 0.12332
}

Semantic roles & 50–950 ramp

primary
#5B47E4
secondary
#DBE2A4
accent
#F137D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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