#5B98FE#5B98FE

#5B98FE is a light, vivid blue. Relative luminance 0.318; OKLCH L 68.6% C 0.164 H 260.1°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5B98FE
RGBrgb(91, 152, 254)
HSLhsl(218, 99%, 68%)
HSVhsv(218, 64%, 100%)
CMYKcmyk(64.2%, 40.2%, 0%, 0.4%)
CIE-LABlab(63.20, 11.53, -56.63)
CIE-LCHlch(63.20, 57.79, 281.51°)
OKLaboklab(68.63% -0.0282 -0.1613)
OKLCHoklch(68.63% 0.164 260.1)
XYZxyz(33.4257, 31.8332, 98.1296)
Luminance0.3184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B98FE #FEC15B
analogous
#5BEAFE #5B98FE #6F5BFE
triadic
#5B98FE #FE5B98 #98FE5B
tetradic
#5B98FE #FE5BEA #FEC15B #5BFE6F
square
#5B98FE #FE5BEA #FEC15B #5BFE6F
split-complementary
#5B98FE #FE6F5B #EAFE5B
monochromatic
#0154DD #1E72FE #5B98FE #98BEFE #D5E4FF

Accessibility & contrast

On white

2.85
#5B98FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#5B98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5B98FE
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B98FE#FFFFFF#000000##000000
##5B98FE1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#5192FC
Tritanopia (blue-blind)
#00AFBF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5b98fe;
/* rgb */ color: rgb(91, 152, 254);
/* oklch */ color: oklch(68.6% 0.164 260.1);
Tailwind
colors: {
  custom: {
    50: '#98b5ff',
    500: '#5b98fe',
    950: '#000000',
  },
}
SCSS
$custom: #5b98fe;
$custom-light: #98b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b98fe",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 217.546,
    "s": 98.788,
    "l": 67.647
  },
  "oklch": {
    "l": 0.68628,
    "c": 0.16376,
    "h": 260.1
  },
  "luminance": 0.31836
}

Semantic roles & 50–950 ramp

primary
#5B98FE
secondary
#F4E1C1
accent
#9000E6
background
#FAFBFF
surface
#F3F6FF
border
#CDD0D7
text
#0F1118
muted
#7F8086

Preview Lab

Preview with #5B98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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