#5B5CE6#5B5CE6

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

Color values

HEX#5B5CE6
RGBrgb(91, 92, 230)
HSLhsl(240, 74%, 63%)
HSVhsv(240, 60%, 90%)
CMYKcmyk(60.4%, 60%, 0%, 9.8%)
CIE-LABlab(46.43, 39.83, -70.29)
CIE-LCHlch(46.43, 80.80, 299.54°)
OKLaboklab(55.44% 0.0253 -0.2022)
OKLCHoklch(55.44% 0.204 277.1)
XYZxyz(22.4198, 15.5899, 76.6753)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE6 #E6E55B
analogous
#5BA2E6 #5B5CE6 #9F5BE6
triadic
#5B5CE6 #E65B5C #5CE65B
tetradic
#5B5CE6 #E65BA2 #E6E55B #5BE69F
square
#5B5CE6 #E65BA2 #E6E55B #5BE69F
split-complementary
#5B5CE6 #E69F5B #A2E65B
monochromatic
#1A1BAC #2627DE #5B5CE6 #9091EE #C5C6F6

Accessibility & contrast

On white

5.10
#5B5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5B5CE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE6
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE6#FFFFFF#000000##FFFFFF
##5B5CE61.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#0068E3
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5ce6;
/* rgb */ color: rgb(91, 92, 230);
/* oklch */ color: oklch(55.4% 0.204 277.1);
Tailwind
colors: {
  custom: {
    50: '#978aef',
    500: '#5b5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce6;
$custom-light: #978aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce6",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 239.568,
    "s": 73.545,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55438,
    "c": 0.20378,
    "h": 277.1
  },
  "luminance": 0.15592
}

Semantic roles & 50–950 ramp

primary
#5B5CE6
secondary
#E7E7B5
accent
#D410D6
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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