#5F97FE#5F97FE

#5F97FE is a light, vivid blue. Relative luminance 0.317; OKLCH L 68.6% C 0.163 H 261.6°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5F97FE
RGBrgb(95, 151, 254)
HSLhsl(219, 99%, 68%)
HSVhsv(219, 63%, 100%)
CMYKcmyk(62.6%, 40.6%, 0%, 0.4%)
CIE-LABlab(63.11, 12.79, -56.77)
CIE-LCHlch(63.11, 58.19, 282.70°)
OKLaboklab(68.6% -0.024 -0.1617)
OKLCHoklch(68.6% 0.163 261.6)
XYZxyz(33.6690, 31.7187, 98.0947)
Luminance0.3172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F97FE #FEC65F
analogous
#5FE6FE #5F97FE #765FFE
triadic
#5F97FE #FE5F97 #97FE5F
tetradic
#5F97FE #FE5FE6 #FEC65F #5FFE76
square
#5F97FE #FE5FE6 #FEC65F #5FFE76
split-complementary
#5F97FE #FE765F #E6FE5F
monochromatic
#0150E1 #226FFE #5F97FE #9CBFFE #D9E6FF

Accessibility & contrast

On white

2.86
#5F97FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#5F97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5F97FE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F97FE#FFFFFF#000000##000000
##5F97FE1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A1FF
Deuteranopia (green-blind)
#5192FC
Tritanopia (blue-blind)
#00AEBE
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #5f97fe;
/* rgb */ color: rgb(95, 151, 254);
/* oklch */ color: oklch(68.6% 0.163 261.6);
Tailwind
colors: {
  custom: {
    50: '#9ab5ff',
    500: '#5f97fe',
    950: '#000000',
  },
}
SCSS
$custom: #5f97fe;
$custom-light: #9ab5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f97fe",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 218.868,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68602,
    "c": 0.16345,
    "h": 261.6
  },
  "luminance": 0.31722
}

Semantic roles & 50–950 ramp

primary
#5F97FE
secondary
#F4E3C4
accent
#9500E6
background
#FAFBFF
surface
#F4F6FF
border
#CED0D7
text
#0F1118
muted
#7F8086

Preview Lab

Preview with #5F97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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