#5B5CE8#5B5CE8

#5B5CE8 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.6% C 0.206 H 277.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE8
RGBrgb(91, 92, 232)
HSLhsl(240, 75%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.8%, 60.3%, 0%, 9%)
CIE-LABlab(46.58, 40.48, -71.18)
CIE-LCHlch(46.58, 81.88, 299.63°)
OKLaboklab(55.6% 0.0252 -0.2048)
OKLCHoklch(55.6% 0.206 277)
XYZxyz(22.7023, 15.7029, 78.1629)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE8 #E8E75B
analogous
#5BA3E8 #5B5CE8 #A05BE8
triadic
#5B5CE8 #E85B5C #5CE85B
tetradic
#5B5CE8 #E85BA3 #E8E75B #5BE8A0
square
#5B5CE8 #E85BA3 #E8E75B #5BE8A0
split-complementary
#5B5CE8 #E8A05B #A3E85B
monochromatic
#191AB0 #2527E0 #5B5CE8 #9191F0 #C6C7F7

Accessibility & contrast

On white

5.07
#5B5CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B5CE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE8#FFFFFF#000000##FFFFFF
##5B5CE81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#0068E5
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5ce8;
/* rgb */ color: rgb(91, 92, 232);
/* oklch */ color: oklch(55.6% 0.206 277.0);
Tailwind
colors: {
  custom: {
    50: '#978af0',
    500: '#5b5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce8;
$custom-light: #978af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce8",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 239.574,
    "s": 75.401,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55596,
    "c": 0.20635,
    "h": 277
  },
  "luminance": 0.15705
}

Semantic roles & 50–950 ramp

primary
#5B5CE8
secondary
#E9E8B6
accent
#D60ED8
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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