#5B7BF6#5B7BF6

#5B7BF6 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.3% C 0.187 H 269.4°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5B7BF6
RGBrgb(91, 123, 246)
HSLhsl(228, 90%, 66%)
HSVhsv(228, 63%, 96%)
CMYKcmyk(63%, 50%, 0%, 3.5%)
CIE-LABlab(55.12, 26.27, -65.18)
CIE-LCHlch(55.12, 70.28, 291.95°)
OKLaboklab(62.28% -0.0021 -0.1868)
OKLCHoklch(62.28% 0.187 269.4)
XYZxyz(28.0263, 23.0414, 90.1414)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BF6 #F6D65B
analogous
#5BC8F6 #5B7BF6 #885BF6
triadic
#5B7BF6 #F65B7B #7BF65B
tetradic
#5B7BF6 #F65BC8 #F6D65B #5BF688
square
#5B7BF6 #F65BC8 #F6D65B #5BF688
split-complementary
#5B7BF6 #F6885B #C8F65B
monochromatic
#0B33CB #214CF3 #5B7BF6 #95AAF9 #CFD8FC

Accessibility & contrast

On white

3.74
#5B7BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5B7BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BF6
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BF6#FFFFFF#000000##000000
##5B7BF61.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#358BFA
Deuteranopia (green-blind)
#007DF3
Tritanopia (blue-blind)
#0098AD
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b7bf6;
/* rgb */ color: rgb(91, 123, 246);
/* oklch */ color: oklch(62.3% 0.187 269.4);
Tailwind
colors: {
  custom: {
    50: '#98a0fa',
    500: '#5b7bf6',
    950: '#000000',
  },
}
SCSS
$custom: #5b7bf6;
$custom-light: #98a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7bf6",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 227.613,
    "s": 89.595,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62278,
    "c": 0.18686,
    "h": 269.4
  },
  "luminance": 0.23044
}

Semantic roles & 50–950 ramp

primary
#5B7BF6
secondary
#F0E5BD
accent
#B600E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5B7BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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