#5A7EFB#5A7EFB

#5A7EFB is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.1% C 0.190 H 268.4°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5A7EFB
RGBrgb(90, 126, 251)
HSLhsl(227, 95%, 67%)
HSVhsv(227, 64%, 98%)
CMYKcmyk(64.1%, 49.8%, 0%, 1.6%)
CIE-LABlab(56.15, 25.96, -66.29)
CIE-LCHlch(56.15, 71.19, 291.39°)
OKLaboklab(63.15% -0.0052 -0.1901)
OKLCHoklch(63.15% 0.19 268.4)
XYZxyz(29.0839, 24.0577, 94.3590)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EFB #FBD75A
analogous
#5ACEFB #5A7EFB #875AFB
triadic
#5A7EFB #FB5A7E #7EFB5A
tetradic
#5A7EFB #FB5ACE #FBD75A #5AFB87
square
#5A7EFB #FB5ACE #FBD75A #5AFB87
split-complementary
#5A7EFB #FB875A #CEFB5A
monochromatic
#0534D5 #1E4FFA #5A7EFB #96ADFC #D2DBFE

Accessibility & contrast

On white

3.61
#5A7EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5A7EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EFB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EFB#FFFFFF#000000##000000
##5A7EFB1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#378EFF
Deuteranopia (green-blind)
#0080F8
Tritanopia (blue-blind)
#009BB1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a7efb;
/* rgb */ color: rgb(90, 126, 251);
/* oklch */ color: oklch(63.1% 0.190 268.4);
Tailwind
colors: {
  custom: {
    50: '#98a2fd',
    500: '#5a7efb',
    950: '#000000',
  },
}
SCSS
$custom: #5a7efb;
$custom-light: #98a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7efb",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 226.584,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63147,
    "c": 0.19016,
    "h": 268.4
  },
  "luminance": 0.2406
}

Semantic roles & 50–950 ramp

primary
#5A7EFB
secondary
#F2E7BF
accent
#B200E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F18
muted
#7F7E86

Preview Lab

Preview with #5A7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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