#5A7DE4#5A7DE4

#5A7DE4 is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.4% C 0.160 H 267.4°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5A7DE4
RGBrgb(90, 125, 228)
HSLhsl(225, 72%, 62%)
HSVhsv(225, 61%, 89%)
CMYKcmyk(60.5%, 45.2%, 0%, 10.6%)
CIE-LABlab(54.49, 18.85, -56.16)
CIE-LCHlch(54.49, 59.24, 288.55°)
OKLaboklab(61.44% -0.0072 -0.1603)
OKLCHoklch(61.44% 0.16 267.4)
XYZxyz(25.5489, 22.4402, 76.3688)
Luminance0.2244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DE4 #E4C15A
analogous
#5AC2E4 #5A7DE4 #7C5AE4
triadic
#5A7DE4 #E45A7D #7DE45A
tetradic
#5A7DE4 #E45AC2 #E4C15A #5AE47C
square
#5A7DE4 #E45AC2 #E4C15A #5AE47C
split-complementary
#5A7DE4 #E47C5A #C2E45A
monochromatic
#1C3FA8 #2554DB #5A7DE4 #8FA6ED #C3D0F5

Accessibility & contrast

On white

3.83
#5A7DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#5A7DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DE4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DE4#FFFFFF#000000##000000
##5A7DE41.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C89E8
Deuteranopia (green-blind)
#367DE2
Tritanopia (blue-blind)
#0094A5
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a7de4;
/* rgb */ color: rgb(90, 125, 228);
/* oklch */ color: oklch(61.4% 0.160 267.4);
Tailwind
colors: {
  custom: {
    50: '#94a2ed',
    500: '#5a7de4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7de4;
$custom-light: #94a2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7de4",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 228
  },
  "hsl": {
    "h": 224.783,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61438,
    "c": 0.16047,
    "h": 267.4
  },
  "luminance": 0.22442
}

Semantic roles & 50–950 ramp

primary
#5A7DE4
secondary
#E6D9B4
accent
#A312D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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