#5B87F6#5B87F6

#5B87F6 is a light, vivid blue. Relative luminance 0.262; OKLCH L 64.7% C 0.172 H 265.6°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5B87F6
RGBrgb(91, 135, 246)
HSLhsl(223, 90%, 66%)
HSVhsv(223, 63%, 96%)
CMYKcmyk(63%, 45.1%, 0%, 3.5%)
CIE-LABlab(58.23, 18.99, -60.18)
CIE-LCHlch(58.23, 63.10, 287.51°)
OKLaboklab(64.65% -0.0133 -0.172)
OKLCHoklch(64.65% 0.172 265.6)
XYZxyz(29.6072, 26.2032, 90.6684)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87F6 #F6CA5B
analogous
#5BD4F6 #5B87F6 #7C5BF6
triadic
#5B87F6 #F65B87 #87F65B
tetradic
#5B87F6 #F65BD4 #F6CA5B #5BF67C
square
#5B87F6 #F65BD4 #F6CA5B #5BF67C
split-complementary
#5B87F6 #F67C5B #D4F65B
monochromatic
#0B42CB #215DF3 #5B87F6 #95B1F9 #CFDCFC

Accessibility & contrast

On white

3.36
#5B87F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#5B87F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87F6
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87F6#FFFFFF#000000##000000
##5B87F61.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5193FA
Deuteranopia (green-blind)
#3685F4
Tritanopia (blue-blind)
#00A0B3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5b87f6;
/* rgb */ color: rgb(91, 135, 246);
/* oklch */ color: oklch(64.7% 0.172 265.6);
Tailwind
colors: {
  custom: {
    50: '#97a9fa',
    500: '#5b87f6',
    950: '#000000',
  },
}
SCSS
$custom: #5b87f6;
$custom-light: #97a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87f6",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 222.968,
    "s": 89.595,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64651,
    "c": 0.17249,
    "h": 265.6
  },
  "luminance": 0.26206
}

Semantic roles & 50–950 ramp

primary
#5B87F6
secondary
#F0E1BD
accent
#A400E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5B87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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