#5A7CEC#5A7CEC

#5A7CEC is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.8% C 0.173 H 268.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5A7CEC
RGBrgb(90, 124, 236)
HSLhsl(226, 79%, 64%)
HSVhsv(226, 62%, 93%)
CMYKcmyk(61.9%, 47.5%, 0%, 7.5%)
CIE-LABlab(54.70, 22.13, -60.29)
CIE-LCHlch(54.70, 64.23, 290.16°)
OKLaboklab(61.75% -0.0051 -0.1725)
OKLCHoklch(61.75% 0.173 268.3)
XYZxyz(26.5593, 22.6428, 82.3115)
Luminance0.2265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CEC #ECCA5A
analogous
#5AC5EC #5A7CEC #815AEC
triadic
#5A7CEC #EC5A7C #7CEC5A
tetradic
#5A7CEC #EC5AC5 #ECCA5A #5AEC81
square
#5A7CEC #EC5AC5 #ECCA5A #5AEC81
split-complementary
#5A7CEC #EC815A #C5EC5A
monochromatic
#153BB7 #2350E6 #5A7CEC #91A8F2 #C8D3F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7CEC#FFFFFF#000000##000000
##5A7CEC1.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)
#438AF0
Deuteranopia (green-blind)
#267DEA
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7cec;
/* rgb */ color: rgb(90, 124, 236);
/* oklch */ color: oklch(61.8% 0.173 268.3);
Tailwind
colors: {
  custom: {
    50: '#95a1f3',
    500: '#5a7cec',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cec;
$custom-light: #95a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cec",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 236
  },
  "hsl": {
    "h": 226.027,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61753,
    "c": 0.17254,
    "h": 268.3
  },
  "luminance": 0.22645
}

Semantic roles & 50–950 ramp

primary
#5A7CEC
secondary
#EBDFB7
accent
#AB0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A7CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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