#5B7EF5#5B7EF5

#5B7EF5 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.8% C 0.182 H 268.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5B7EF5
RGBrgb(91, 126, 245)
HSLhsl(226, 89%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(62.9%, 48.6%, 0%, 3.9%)
CIE-LABlab(55.82, 24.10, -63.49)
CIE-LCHlch(55.82, 67.91, 290.79°)
OKLaboklab(62.8% -0.005 -0.1818)
OKLCHoklch(62.8% 0.182 268.4)
XYZxyz(28.2511, 23.7359, 89.4612)
Luminance0.2374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7EF5 #F5D25B
analogous
#5BCBF5 #5B7EF5 #855BF5
triadic
#5B7EF5 #F55B7E #7EF55B
tetradic
#5B7EF5 #F55BCB #F5D25B #5BF585
square
#5B7EF5 #F55BCB #F5D25B #5BF585
split-complementary
#5B7EF5 #F5855B #CBF55B
monochromatic
#0C37C9 #2151F1 #5B7EF5 #95ABF9 #CED9FC

Accessibility & contrast

On white

3.65
#5B7EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5B7EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7EF5
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7EF5#FFFFFF#000000##000000
##5B7EF51.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DF9
Deuteranopia (green-blind)
#197FF3
Tritanopia (blue-blind)
#0099AE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b7ef5;
/* rgb */ color: rgb(91, 126, 245);
/* oklch */ color: oklch(62.8% 0.182 268.4);
Tailwind
colors: {
  custom: {
    50: '#97a2f9',
    500: '#5b7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #5b7ef5;
$custom-light: #97a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7ef5",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 226.364,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62795,
    "c": 0.1819,
    "h": 268.4
  },
  "luminance": 0.23738
}

Semantic roles & 50–950 ramp

primary
#5B7EF5
secondary
#EFE4BC
accent
#B100E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5B7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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