#5A7FEE#5A7FEE

#5A7FEE is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.5% C 0.172 H 267.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5A7FEE
RGBrgb(90, 127, 238)
HSLhsl(225, 81%, 64%)
HSVhsv(225, 62%, 93%)
CMYKcmyk(62.2%, 46.6%, 0%, 6.7%)
CIE-LABlab(55.61, 20.98, -59.95)
CIE-LCHlch(55.61, 63.52, 289.28°)
OKLaboklab(62.48% -0.0077 -0.1714)
OKLCHoklch(62.48% 0.172 267.4)
XYZxyz(27.2332, 23.5230, 83.9776)
Luminance0.2352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FEE #EEC95A
analogous
#5AC9EE #5A7FEE #7F5AEE
triadic
#5A7FEE #EE5A7F #7FEE5A
tetradic
#5A7FEE #EE5AC9 #EEC95A #5AEE7F
square
#5A7FEE #EE5AC9 #EEC95A #5AEE7F
split-complementary
#5A7FEE #EE7F5A #C9EE5A
monochromatic
#133DBA #2354E8 #5A7FEE #91AAF4 #C9D5F9

Accessibility & contrast

On white

3.68
#5A7FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#5A7FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FEE
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FEE#FFFFFF#000000##000000
##5A7FEE1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478CF2
Deuteranopia (green-blind)
#2C7FEC
Tritanopia (blue-blind)
#0098AB
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7fee;
/* rgb */ color: rgb(90, 127, 238);
/* oklch */ color: oklch(62.5% 0.172 267.4);
Tailwind
colors: {
  custom: {
    50: '#96a3f4',
    500: '#5a7fee',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fee;
$custom-light: #96a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fee",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 225,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62481,
    "c": 0.1716,
    "h": 267.4
  },
  "luminance": 0.23525
}

Semantic roles & 50–950 ramp

primary
#5A7FEE
secondary
#ECDFB8
accent
#A808DE
background
#F9FAFF
surface
#F2F3FE
border
#CCCDD6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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