#5B7BE7#5B7BE7

#5B7BE7 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.3% C 0.167 H 268.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5B7BE7
RGBrgb(91, 123, 231)
HSLhsl(226, 74%, 63%)
HSVhsv(226, 61%, 91%)
CMYKcmyk(60.6%, 46.8%, 0%, 9.4%)
CIE-LABlab(54.19, 21.25, -58.31)
CIE-LCHlch(54.19, 62.06, 290.02°)
OKLaboklab(61.28% -0.0038 -0.1666)
OKLCHoklch(61.28% 0.167 268.7)
XYZxyz(25.8163, 22.1574, 78.5022)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BE7 #E7C75B
analogous
#5BC1E7 #5B7BE7 #815BE7
triadic
#5B7BE7 #E75B7B #7BE75B
tetradic
#5B7BE7 #E75BC1 #E7C75B #5BE781
square
#5B7BE7 #E75BC1 #E7C75B #5BE781
split-complementary
#5B7BE7 #E7815B #C1E75B
monochromatic
#193BAE #2650DF #5B7BE7 #90A6EF #C6D1F7

Accessibility & contrast

On white

3.87
#5B7BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5B7BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BE7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BE7#FFFFFF#000000##000000
##5B7BE71.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4688EB
Deuteranopia (green-blind)
#2D7CE5
Tritanopia (blue-blind)
#0094A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b7be7;
/* rgb */ color: rgb(91, 123, 231);
/* oklch */ color: oklch(61.3% 0.167 268.7);
Tailwind
colors: {
  custom: {
    50: '#95a0ef',
    500: '#5b7be7',
    950: '#000000',
  },
}
SCSS
$custom: #5b7be7;
$custom-light: #95a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7be7",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 231
  },
  "hsl": {
    "h": 226.286,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61283,
    "c": 0.16668,
    "h": 268.7
  },
  "luminance": 0.2216
}

Semantic roles & 50–950 ramp

primary
#5B7BE7
secondary
#E8DDB6
accent
#A90FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5B7BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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