#5A5EF4#5A5EF4

#5A5EF4 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.8% C 0.219 H 275.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5A5EF4
RGBrgb(90, 94, 244)
HSLhsl(238, 88%, 65%)
HSVhsv(238, 63%, 96%)
CMYKcmyk(63.1%, 61.5%, 0%, 4.3%)
CIE-LABlab(47.89, 43.00, -75.79)
CIE-LCHlch(47.89, 87.14, 299.57°)
OKLaboklab(56.83% 0.0219 -0.2183)
OKLCHoklch(56.83% 0.219 275.7)
XYZxyz(24.5429, 16.7087, 87.5021)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EF4 #F4F05A
analogous
#5AABF4 #5A5EF4 #A35AF4
triadic
#5A5EF4 #F45A5E #5EF45A
tetradic
#5A5EF4 #F45AAB #F4F05A #5AF4A3
square
#5A5EF4 #F45AAB #F4F05A #5AF4A3
split-complementary
#5A5EF4 #F4A35A #ABF45A
monochromatic
#0D12C6 #2126F0 #5A5EF4 #9396F8 #CDCEFC

Accessibility & contrast

On white

4.84
#5A5EF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5A5EF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EF4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EF4#FFFFFF#000000##FFFFFF
##5A5EF41.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F9
Deuteranopia (green-blind)
#006BF1
Tritanopia (blue-blind)
#0084A0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a5ef4;
/* rgb */ color: rgb(90, 94, 244);
/* oklch */ color: oklch(56.8% 0.219 275.7);
Tailwind
colors: {
  custom: {
    50: '#988cf9',
    500: '#5a5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ef4;
$custom-light: #988cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ef4",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 238.442,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56827,
    "c": 0.21944,
    "h": 275.7
  },
  "luminance": 0.16711
}

Semantic roles & 50–950 ramp

primary
#5A5EF4
secondary
#EFEDBB
accent
#DE01E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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