#5B47CE#5B47CE

#5B47CE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.1% C 0.199 H 283.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5B47CE
RGBrgb(91, 71, 206)
HSLhsl(249, 58%, 54%)
HSVhsv(249, 66%, 81%)
CMYKcmyk(55.8%, 65.5%, 0%, 19.2%)
CIE-LABlab(39.89, 44.64, -67.24)
CIE-LCHlch(39.89, 80.71, 303.58°)
OKLaboklab(50.08% 0.0457 -0.1933)
OKLCHoklch(50.08% 0.199 283.3)
XYZxyz(17.7048, 11.1858, 59.6067)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47CE #BACE47
analogous
#4777CE #5B47CE #9F47CE
triadic
#5B47CE #CE5B47 #47CE5B
tetradic
#5B47CE #CE4777 #BACE47 #47CE9F
square
#5B47CE #CE4777 #BACE47 #47CE9F
split-complementary
#5B47CE #CE9F47 #77CE47
monochromatic
#2E217A #402DAA #5B47CE #8677DB #B1A8E8

Accessibility & contrast

On white

6.49
#5B47CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5B47CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B47CE
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47CE#FFFFFF#000000##FFFFFF
##5B47CE1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#226984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b47ce;
/* rgb */ color: rgb(91, 71, 206);
/* oklch */ color: oklch(50.1% 0.199 283.3);
Tailwind
colors: {
  custom: {
    50: '#947cde',
    500: '#5b47ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b47ce;
$custom-light: #947cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47ce",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 206
  },
  "hsl": {
    "h": 248.889,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5008,
    "c": 0.19866,
    "h": 283.3
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#5B47CE
secondary
#CDD59C
accent
#E147CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B47CE

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

Preview Lab → · Contrast checker → · Palette generator →

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