#5A7FF4#5A7FF4

#5A7FF4 is a light, vivid blue. Relative luminance 0.239; OKLCH L 62.9% C 0.180 H 267.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A7FF4
RGBrgb(90, 127, 244)
HSLhsl(226, 88%, 65%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.1%, 48%, 0%, 4.3%)
CIE-LABlab(55.97, 22.99, -62.70)
CIE-LCHlch(55.97, 66.79, 290.14°)
OKLaboklab(62.87% -0.0069 -0.1795)
OKLCHoklch(62.87% 0.18 267.8)
XYZxyz(28.1294, 23.8815, 88.6976)
Luminance0.2388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FF4 #F4CF5A
analogous
#5ACCF4 #5A7FF4 #825AF4
triadic
#5A7FF4 #F45A7F #7FF45A
tetradic
#5A7FF4 #F45ACC #F4CF5A #5AF482
square
#5A7FF4 #F45ACC #F4CF5A #5AF482
split-complementary
#5A7FF4 #F4825A #CCF45A
monochromatic
#0D3AC6 #2152F0 #5A7FF4 #93ACF8 #CDD8FC

Accessibility & contrast

On white

3.64
#5A7FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#5A7FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FF4
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FF4#FFFFFF#000000##000000
##5A7FF41.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#418DF8
Deuteranopia (green-blind)
#1F80F2
Tritanopia (blue-blind)
#009AAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ff4;
/* rgb */ color: rgb(90, 127, 244);
/* oklch */ color: oklch(62.9% 0.180 267.8);
Tailwind
colors: {
  custom: {
    50: '#97a3f8',
    500: '#5a7ff4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ff4;
$custom-light: #97a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ff4",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 225.584,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62873,
    "c": 0.17965,
    "h": 267.8
  },
  "luminance": 0.23884
}

Semantic roles & 50–950 ramp

primary
#5A7FF4
secondary
#EFE2BB
accent
#AE01E4
background
#F9FAFF
surface
#F2F3FF
border
#CCCDD7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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