#5B5CE7#5B5CE7

#5B5CE7 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.5% C 0.205 H 277.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE7
RGBrgb(91, 92, 231)
HSLhsl(240, 74%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.6%, 60.2%, 0%, 9.4%)
CIE-LABlab(46.51, 40.16, -70.74)
CIE-LCHlch(46.51, 81.34, 299.58°)
OKLaboklab(55.52% 0.0253 -0.2035)
OKLCHoklch(55.52% 0.205 277.1)
XYZxyz(22.5607, 15.6462, 77.4170)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE7 #E7E65B
analogous
#5BA2E7 #5B5CE7 #A05BE7
triadic
#5B5CE7 #E75B5C #5CE75B
tetradic
#5B5CE7 #E75BA2 #E7E65B #5BE7A0
square
#5B5CE7 #E75BA2 #E7E65B #5BE7A0
split-complementary
#5B5CE7 #E7A05B #A2E75B
monochromatic
#191BAE #2627DF #5B5CE7 #9091EF #C6C6F7

Accessibility & contrast

On white

5.09
#5B5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5B5CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE7#FFFFFF#000000##FFFFFF
##5B5CE71.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0068E4
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5ce7;
/* rgb */ color: rgb(91, 92, 231);
/* oklch */ color: oklch(55.5% 0.205 277.1);
Tailwind
colors: {
  custom: {
    50: '#978af0',
    500: '#5b5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce7;
$custom-light: #978af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce7",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 239.571,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55517,
    "c": 0.20506,
    "h": 277.1
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#5B5CE7
secondary
#E8E8B6
accent
#D50FD7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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