#5A7FE8#5A7FE8

#5A7FE8 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.1% C 0.163 H 267.0°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5A7FE8
RGBrgb(90, 127, 232)
HSLhsl(224, 76%, 63%)
HSVhsv(224, 61%, 91%)
CMYKcmyk(61.2%, 45.3%, 0%, 9%)
CIE-LABlab(55.25, 18.97, -57.18)
CIE-LCHlch(55.25, 60.24, 288.35°)
OKLaboklab(62.1% -0.0086 -0.1633)
OKLCHoklch(62.1% 0.163 267)
XYZxyz(26.3663, 23.1763, 79.4123)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FE8 #E8C35A
analogous
#5AC6E8 #5A7FE8 #7C5AE8
triadic
#5A7FE8 #E85A7F #7FE85A
tetradic
#5A7FE8 #E85AC6 #E8C35A #5AE87C
square
#5A7FE8 #E85AC6 #E8C35A #5AE87C
split-complementary
#5A7FE8 #E87C5A #C6E85A
monochromatic
#1840AF #2455E1 #5A7FE8 #90A9EF #C5D2F7

Accessibility & contrast

On white

3.73
#5A7FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5A7FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FE8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FE8#FFFFFF#000000##000000
##5A7FE81.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8BEC
Deuteranopia (green-blind)
#367EE6
Tritanopia (blue-blind)
#0097A8
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7fe8;
/* rgb */ color: rgb(90, 127, 232);
/* oklch */ color: oklch(62.1% 0.163 267.0);
Tailwind
colors: {
  custom: {
    50: '#95a3f0',
    500: '#5a7fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fe8;
$custom-light: #95a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fe8",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 232
  },
  "hsl": {
    "h": 224.366,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62097,
    "c": 0.16349,
    "h": 267
  },
  "luminance": 0.23179
}

Semantic roles & 50–950 ramp

primary
#5A7FE8
secondary
#E8DBB5
accent
#A30ED8
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A7FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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