#5B5BE7#5B5BE7

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

Color values

HEX#5B5BE7
RGBrgb(91, 91, 231)
HSLhsl(240, 74%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.6%, 60.6%, 0%, 9.4%)
CIE-LABlab(46.28, 40.75, -71.11)
CIE-LCHlch(46.28, 81.96, 299.82°)
OKLaboklab(55.35% 0.0261 -0.2046)
OKLCHoklch(55.35% 0.206 277.3)
XYZxyz(22.4746, 15.4741, 77.3883)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BE7 #E7E75B
analogous
#5BA1E7 #5B5BE7 #A15BE7
triadic
#5B5BE7 #E75B5B #5BE75B
tetradic
#5B5BE7 #E75BA1 #E7E75B #5BE7A1
square
#5B5BE7 #E75BA1 #E7E75B #5BE7A1
split-complementary
#5B5BE7 #E7A15B #A1E75B
monochromatic
#1919AE #2626DF #5B5BE7 #9090EF #C6C6F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B5BE7#FFFFFF#000000##FFFFFF
##5B5BE71.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)
#0074EC
Deuteranopia (green-blind)
#0068E4
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5be7;
/* rgb */ color: rgb(91, 91, 231);
/* oklch */ color: oklch(55.3% 0.206 277.3);
Tailwind
colors: {
  custom: {
    50: '#978af0',
    500: '#5b5be7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5be7;
$custom-light: #978af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5be7",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 240,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55348,
    "c": 0.20627,
    "h": 277.3
  },
  "luminance": 0.15476
}

Semantic roles & 50–950 ramp

primary
#5B5BE7
secondary
#E8E8B6
accent
#D70FD7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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