#5A7EE8#5A7EE8

#5A7EE8 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.9% C 0.165 H 267.4°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A7EE8
RGBrgb(90, 126, 232)
HSLhsl(225, 76%, 63%)
HSVhsv(225, 61%, 91%)
CMYKcmyk(61.2%, 45.7%, 0%, 9%)
CIE-LABlab(54.99, 19.57, -57.60)
CIE-LCHlch(54.99, 60.84, 288.77°)
OKLaboklab(61.9% -0.0076 -0.1645)
OKLCHoklch(61.9% 0.165 267.4)
XYZxyz(26.2378, 22.9193, 79.3695)
Luminance0.2292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EE8 #E8C45A
analogous
#5AC5E8 #5A7EE8 #7D5AE8
triadic
#5A7EE8 #E85A7E #7EE85A
tetradic
#5A7EE8 #E85AC5 #E8C45A #5AE87D
square
#5A7EE8 #E85AC5 #E8C45A #5AE87D
split-complementary
#5A7EE8 #E87D5A #C5E85A
monochromatic
#183FAF #2454E1 #5A7EE8 #90A8EF #C5D2F7

Accessibility & contrast

On white

3.76
#5A7EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5A7EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EE8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EE8#FFFFFF#000000##000000
##5A7EE81.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8AEC
Deuteranopia (green-blind)
#337EE6
Tritanopia (blue-blind)
#0096A8
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7ee8;
/* rgb */ color: rgb(90, 126, 232);
/* oklch */ color: oklch(61.9% 0.165 267.4);
Tailwind
colors: {
  custom: {
    50: '#95a2f0',
    500: '#5a7ee8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ee8;
$custom-light: #95a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ee8",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 224.789,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61895,
    "c": 0.1647,
    "h": 267.4
  },
  "luminance": 0.22922
}

Semantic roles & 50–950 ramp

primary
#5A7EE8
secondary
#E8DBB5
accent
#A50ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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