#5B4ECE#5B4ECE

#5B4ECE is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.2% C 0.190 H 281.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5B4ECE
RGBrgb(91, 78, 206)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 62%, 81%)
CMYKcmyk(55.8%, 62.1%, 0%, 19.2%)
CIE-LABlab(41.42, 40.57, -64.75)
CIE-LCHlch(41.42, 76.41, 302.07°)
OKLaboklab(51.19% 0.0393 -0.186)
OKLCHoklch(51.19% 0.19 281.9)
XYZxyz(18.1759, 12.1280, 59.7637)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4ECE #C1CE4E
analogous
#4E81CE #5B4ECE #9B4ECE
triadic
#5B4ECE #CE5B4E #4ECE5B
tetradic
#5B4ECE #CE4E81 #C1CE4E #4ECE9B
square
#5B4ECE #CE4E81 #C1CE4E #4ECE9B
split-complementary
#5B4ECE #CE9B4E #81CE4E
monochromatic
#2C237F #3D30AE #5B4ECE #877EDB #B4AEE9

Accessibility & contrast

On white

6.13
#5B4ECE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B4ECE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4ECE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4ECE#FFFFFF#000000##FFFFFF
##5B4ECE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b4ece;
/* rgb */ color: rgb(91, 78, 206);
/* oklch */ color: oklch(51.2% 0.190 281.9);
Tailwind
colors: {
  custom: {
    50: '#9480de',
    500: '#5b4ece',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ece;
$custom-light: #9480de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ece",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 206
  },
  "hsl": {
    "h": 246.094,
    "s": 56.637,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51191,
    "c": 0.1901,
    "h": 281.9
  },
  "luminance": 0.12129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B4ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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