#5A7FEF#5A7FEF

#5A7FEF is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.5% C 0.173 H 267.5°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5A7FEF
RGBrgb(90, 127, 239)
HSLhsl(225, 82%, 65%)
HSVhsv(225, 62%, 94%)
CMYKcmyk(62.3%, 46.9%, 0%, 6.3%)
CIE-LABlab(55.67, 21.31, -60.41)
CIE-LCHlch(55.67, 64.06, 289.43°)
OKLaboklab(62.55% -0.0076 -0.1728)
OKLCHoklch(62.55% 0.173 267.5)
XYZxyz(27.3805, 23.5820, 84.7535)
Luminance0.2358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FEF #EFCA5A
analogous
#5AC9EF #5A7FEF #805AEF
triadic
#5A7FEF #EF5A7F #7FEF5A
tetradic
#5A7FEF #EF5AC9 #EFCA5A #5AEF80
square
#5A7FEF #EF5AC9 #EFCA5A #5AEF80
split-complementary
#5A7FEF #EF805A #C9EF5A
monochromatic
#123CBC #2254EA #5A7FEF #92AAF4 #CAD6FA

Accessibility & contrast

On white

3.67
#5A7FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#5A7FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FEF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FEF#FFFFFF#000000##000000
##5A7FEF1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#478CF3
Deuteranopia (green-blind)
#2A7FED
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7fef;
/* rgb */ color: rgb(90, 127, 239);
/* oklch */ color: oklch(62.5% 0.173 267.5);
Tailwind
colors: {
  custom: {
    50: '#96a3f5',
    500: '#5a7fef',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fef;
$custom-light: #96a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fef",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 225.101,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62546,
    "c": 0.17296,
    "h": 267.5
  },
  "luminance": 0.23584
}

Semantic roles & 50–950 ramp

primary
#5A7FEF
secondary
#ECDFB9
accent
#A907DF
background
#F9FAFF
surface
#F2F3FE
border
#CCCDD6
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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