#5B5CE9#5B5CE9

#5B5CE9 is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.7% C 0.208 H 277.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE9
RGBrgb(91, 92, 233)
HSLhsl(240, 76%, 64%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.9%, 60.5%, 0%, 8.6%)
CIE-LABlab(46.66, 40.80, -71.62)
CIE-LCHlch(46.66, 82.42, 299.67°)
OKLaboklab(55.68% 0.0252 -0.2061)
OKLCHoklch(55.68% 0.208 277)
XYZxyz(22.8448, 15.7598, 78.9131)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE9 #E9E85B
analogous
#5BA3E9 #5B5CE9 #A15BE9
triadic
#5B5CE9 #E95B5C #5CE95B
tetradic
#5B5CE9 #E95BA3 #E9E85B #5BE9A1
square
#5B5CE9 #E95BA3 #E9E85B #5BE9A1
split-complementary
#5B5CE9 #E9A15B #A3E95B
monochromatic
#1819B2 #2526E2 #5B5CE9 #9192F0 #C7C7F7

Accessibility & contrast

On white

5.06
#5B5CE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B5CE9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE9#FFFFFF#000000##FFFFFF
##5B5CE91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EE
Deuteranopia (green-blind)
#0069E6
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5ce9;
/* rgb */ color: rgb(91, 92, 233);
/* oklch */ color: oklch(55.7% 0.208 277.0);
Tailwind
colors: {
  custom: {
    50: '#978af1',
    500: '#5b5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce9;
$custom-light: #978af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce9",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 239.577,
    "s": 76.344,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55675,
    "c": 0.20763,
    "h": 277
  },
  "luminance": 0.15762
}

Semantic roles & 50–950 ramp

primary
#5B5CE9
secondary
#E9E9B7
accent
#D70DD9
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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