#5B4DCE#5B4DCE

#5B4DCE is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.191 H 282.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5B4DCE
RGBrgb(91, 77, 206)
HSLhsl(247, 57%, 55%)
HSVhsv(247, 63%, 81%)
CMYKcmyk(55.8%, 62.6%, 0%, 19.2%)
CIE-LABlab(41.20, 41.16, -65.12)
CIE-LCHlch(41.20, 77.04, 302.30°)
OKLaboklab(51.03% 0.0402 -0.1871)
OKLCHoklch(51.03% 0.191 282.1)
XYZxyz(18.1054, 11.9870, 59.7402)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DCE #C0CE4D
analogous
#4D7FCE #5B4DCE #9C4DCE
triadic
#5B4DCE #CE5B4D #4DCE5B
tetradic
#5B4DCE #CE4D7F #C0CE4D #4DCE9C
square
#5B4DCE #CE4D7F #C0CE4D #4DCE9C
split-complementary
#5B4DCE #CE9C4D #7FCE4D
monochromatic
#2D237E #3E30AE #5B4DCE #877DDB #B3ADE8

Accessibility & contrast

On white

6.18
#5B4DCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5B4DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DCE
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DCE#FFFFFF#000000##FFFFFF
##5B4DCE1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#216D86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4dce;
/* rgb */ color: rgb(91, 77, 206);
/* oklch */ color: oklch(51.0% 0.191 282.1);
Tailwind
colors: {
  custom: {
    50: '#9480de',
    500: '#5b4dce',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dce;
$custom-light: #9480de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dce",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 206
  },
  "hsl": {
    "h": 246.512,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51028,
    "c": 0.19134,
    "h": 282.1
  },
  "luminance": 0.11988
}

Semantic roles & 50–950 ramp

primary
#5B4DCE
secondary
#D0D6A1
accent
#E048D0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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