#5B5CE4#5B5CE4

#5B5CE4 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.3% C 0.201 H 277.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE4
RGBrgb(91, 92, 228)
HSLhsl(240, 72%, 63%)
HSVhsv(240, 60%, 89%)
CMYKcmyk(60.1%, 59.6%, 0%, 10.6%)
CIE-LABlab(46.28, 39.19, -69.41)
CIE-LCHlch(46.28, 79.71, 299.45°)
OKLaboklab(55.28% 0.0254 -0.1996)
OKLCHoklch(55.28% 0.201 277.2)
XYZxyz(22.1406, 15.4782, 75.2046)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE4 #E4E35B
analogous
#5BA1E4 #5B5CE4 #9E5BE4
triadic
#5B5CE4 #E45B5C #5CE45B
tetradic
#5B5CE4 #E45BA1 #E4E35B #5BE49E
square
#5B5CE4 #E45BA1 #E4E35B #5BE49E
split-complementary
#5B5CE4 #E49E5B #A1E45B
monochromatic
#1C1DA9 #2628DB #5B5CE4 #9090ED #C4C4F5

Accessibility & contrast

On white

5.13
#5B5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B5CE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE4#FFFFFF#000000##FFFFFF
##5B5CE41.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#0068E1
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5ce4;
/* rgb */ color: rgb(91, 92, 228);
/* oklch */ color: oklch(55.3% 0.201 277.2);
Tailwind
colors: {
  custom: {
    50: '#968aed',
    500: '#5b5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce4;
$custom-light: #968aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce4",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 239.562,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55281,
    "c": 0.2012,
    "h": 277.2
  },
  "luminance": 0.1548
}

Semantic roles & 50–950 ramp

primary
#5B5CE4
secondary
#E6E6B4
accent
#D212D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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