#5A7DE8#5A7DE8

#5A7DE8 is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.7% C 0.166 H 267.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5A7DE8
RGBrgb(90, 125, 232)
HSLhsl(225, 76%, 63%)
HSVhsv(225, 61%, 91%)
CMYKcmyk(61.2%, 46.1%, 0%, 9%)
CIE-LABlab(54.73, 20.18, -58.02)
CIE-LCHlch(54.73, 61.43, 289.18°)
OKLaboklab(61.69% -0.0066 -0.1658)
OKLCHoklch(61.69% 0.166 267.7)
XYZxyz(26.1106, 22.6648, 79.3271)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DE8 #E8C55A
analogous
#5AC4E8 #5A7DE8 #7E5AE8
triadic
#5A7DE8 #E85A7D #7DE85A
tetradic
#5A7DE8 #E85AC4 #E8C55A #5AE87E
square
#5A7DE8 #E85AC4 #E8C55A #5AE87E
split-complementary
#5A7DE8 #E87E5A #C4E85A
monochromatic
#183EAF #2453E1 #5A7DE8 #90A7EF #C5D2F7

Accessibility & contrast

On white

3.80
#5A7DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5A7DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DE8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DE8#FFFFFF#000000##000000
##5A7DE81.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#498AEC
Deuteranopia (green-blind)
#307DE6
Tritanopia (blue-blind)
#0095A7
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7de8;
/* rgb */ color: rgb(90, 125, 232);
/* oklch */ color: oklch(61.7% 0.166 267.7);
Tailwind
colors: {
  custom: {
    50: '#95a2f0',
    500: '#5a7de8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7de8;
$custom-light: #95a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7de8",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 232
  },
  "hsl": {
    "h": 225.211,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61693,
    "c": 0.16592,
    "h": 267.7
  },
  "luminance": 0.22667
}

Semantic roles & 50–950 ramp

primary
#5A7DE8
secondary
#E8DCB5
accent
#A60ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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