#5F87F6#5F87F6

#5F87F6 is a light, vivid blue. Relative luminance 0.264; OKLCH L 64.9% C 0.171 H 266.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5F87F6
RGBrgb(95, 135, 246)
HSLhsl(224, 89%, 67%)
HSVhsv(224, 61%, 96%)
CMYKcmyk(61.4%, 45.1%, 0%, 3.5%)
CIE-LABlab(58.43, 19.68, -59.85)
CIE-LCHlch(58.43, 63.00, 288.20°)
OKLaboklab(64.85% -0.0098 -0.1709)
OKLCHoklch(64.85% 0.171 266.7)
XYZxyz(30.0121, 26.4120, 90.6873)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87F6 #F6CE5F
analogous
#5FD3F6 #5F87F6 #835FF6
triadic
#5F87F6 #F65F87 #87F65F
tetradic
#5F87F6 #F65FD3 #F6CE5F #5FF683
square
#5F87F6 #F65FD3 #F6CE5F #5FF683
split-complementary
#5F87F6 #F6835F #D3F65F
monochromatic
#0C3FCF #255CF3 #5F87F6 #99B2F9 #D3DEFD

Accessibility & contrast

On white

3.34
#5F87F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#5F87F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87F6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87F6#FFFFFF#000000##000000
##5F87F61.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f87f6;
/* rgb */ color: rgb(95, 135, 246);
/* oklch */ color: oklch(64.9% 0.171 266.7);
Tailwind
colors: {
  custom: {
    50: '#99a9fa',
    500: '#5f87f6',
    950: '#000000',
  },
}
SCSS
$custom: #5f87f6;
$custom-light: #99a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87f6",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 224.106,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64855,
    "c": 0.17122,
    "h": 266.7
  },
  "luminance": 0.26415
}

Semantic roles & 50–950 ramp

primary
#5F87F6
secondary
#F1E4C0
accent
#A900E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5F87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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