#5A7FF5#5A7FF5

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

Color values

HEX#5A7FF5
RGBrgb(90, 127, 245)
HSLhsl(226, 89%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.3%, 48.2%, 0%, 3.9%)
CIE-LABlab(56.03, 23.33, -63.16)
CIE-LCHlch(56.03, 67.33, 290.27°)
OKLaboklab(62.94% -0.0068 -0.1809)
OKLCHoklch(62.94% 0.181 267.8)
XYZxyz(28.2816, 23.9424, 89.4994)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FF5 #F5D05A
analogous
#5ACDF5 #5A7FF5 #825AF5
triadic
#5A7FF5 #F55A7F #7FF55A
tetradic
#5A7FF5 #F55ACD #F5D05A #5AF582
square
#5A7FF5 #F55ACD #F5D05A #5AF582
split-complementary
#5A7FF5 #F5825A #CDF55A
monochromatic
#0C39C8 #2052F2 #5A7FF5 #94ACF8 #CDD9FC

Accessibility & contrast

On white

3.63
#5A7FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#5A7FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FF5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FF5#FFFFFF#000000##000000
##5A7FF51.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#408EF9
Deuteranopia (green-blind)
#1D80F3
Tritanopia (blue-blind)
#009AAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ff5;
/* rgb */ color: rgb(90, 127, 245);
/* oklch */ color: oklch(62.9% 0.181 267.8);
Tailwind
colors: {
  custom: {
    50: '#97a3f9',
    500: '#5a7ff5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ff5;
$custom-light: #97a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ff5",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 225.677,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6294,
    "c": 0.18099,
    "h": 267.8
  },
  "luminance": 0.23945
}

Semantic roles & 50–950 ramp

primary
#5A7FF5
secondary
#EFE3BC
accent
#AF00E5
background
#FAFAFF
surface
#F3F3FF
border
#CDCDD7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5A7FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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