#5B81FC#5B81FC

#5B81FC is a light, vivid blue. Relative luminance 0.250; OKLCH L 63.8% C 0.188 H 267.9°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5B81FC
RGBrgb(91, 129, 252)
HSLhsl(226, 96%, 67%)
HSVhsv(226, 64%, 99%)
CMYKcmyk(63.9%, 48.8%, 0%, 1.2%)
CIE-LABlab(57.03, 24.63, -65.42)
CIE-LCHlch(57.03, 69.90, 290.63°)
OKLaboklab(63.85% -0.0069 -0.1875)
OKLCHoklch(63.85% 0.188 267.9)
XYZxyz(29.7293, 24.9502, 95.3257)
Luminance0.2495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B81FC #FCD65B
analogous
#5BD1FC #5B81FC #865BFC
triadic
#5B81FC #FC5B81 #81FC5B
tetradic
#5B81FC #FC5BD1 #FCD65B #5BFC86
square
#5B81FC #FC5BD1 #FCD65B #5BFC86
split-complementary
#5B81FC #FC865B #D1FC5B
monochromatic
#0436D9 #1F53FB #5B81FC #97AFFD #D3DDFE

Accessibility & contrast

On white

3.51
#5B81FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#5B81FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B81FC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B81FC#FFFFFF#000000##000000
##5B81FC1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E91FF
Deuteranopia (green-blind)
#1182F9
Tritanopia (blue-blind)
#009EB3
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5b81fc;
/* rgb */ color: rgb(91, 129, 252);
/* oklch */ color: oklch(63.8% 0.188 267.9);
Tailwind
colors: {
  custom: {
    50: '#98a5fe',
    500: '#5b81fc',
    950: '#000000',
  },
}
SCSS
$custom: #5b81fc;
$custom-light: #98a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b81fc",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 225.839,
    "s": 96.407,
    "l": 67.255
  },
  "oklch": {
    "l": 0.63849,
    "c": 0.1876,
    "h": 267.9
  },
  "luminance": 0.24953
}

Semantic roles & 50–950 ramp

primary
#5B81FC
secondary
#F3E7C0
accent
#AF00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5B81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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