#5B5DE7#5B5DE7

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

Color values

HEX#5B5DE7
RGBrgb(91, 93, 231)
HSLhsl(239, 74%, 63%)
HSVhsv(239, 61%, 91%)
CMYKcmyk(60.6%, 59.7%, 0%, 9.4%)
CIE-LABlab(46.74, 39.56, -70.36)
CIE-LCHlch(46.74, 80.72, 299.34°)
OKLaboklab(55.69% 0.0244 -0.2024)
OKLCHoklch(55.69% 0.204 276.9)
XYZxyz(22.6479, 15.8206, 77.4460)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DE7 #E7E55B
analogous
#5BA3E7 #5B5DE7 #9F5BE7
triadic
#5B5DE7 #E75B5D #5DE75B
tetradic
#5B5DE7 #E75BA3 #E7E55B #5BE79F
square
#5B5DE7 #E75BA3 #E7E55B #5BE79F
split-complementary
#5B5DE7 #E79F5B #A3E75B
monochromatic
#191CAE #2628DF #5B5DE7 #9092EF #C6C6F7

Accessibility & contrast

On white

5.04
#5B5DE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5B5DE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DE7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DE7#FFFFFF#000000##FFFFFF
##5B5DE71.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#0069E4
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5de7;
/* rgb */ color: rgb(91, 93, 231);
/* oklch */ color: oklch(55.7% 0.204 276.9);
Tailwind
colors: {
  custom: {
    50: '#978bf0',
    500: '#5b5de7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5de7;
$custom-light: #978bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5de7",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 239.143,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.20385,
    "h": 276.9
  },
  "luminance": 0.15822
}

Semantic roles & 50–950 ramp

primary
#5B5DE7
secondary
#E8E7B6
accent
#D40FD7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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