#5A7EEC#5A7EEC

#5A7EEC is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.2% C 0.170 H 267.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5A7EEC
RGBrgb(90, 126, 236)
HSLhsl(225, 79%, 64%)
HSVhsv(225, 62%, 93%)
CMYKcmyk(61.9%, 46.6%, 0%, 7.5%)
CIE-LABlab(55.23, 20.91, -59.45)
CIE-LCHlch(55.23, 63.02, 289.38°)
OKLaboklab(62.15% -0.007 -0.17)
OKLCHoklch(62.15% 0.17 267.6)
XYZxyz(26.8125, 23.1491, 82.3959)
Luminance0.2315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EEC #ECC85A
analogous
#5AC7EC #5A7EEC #7F5AEC
triadic
#5A7EEC #EC5A7E #7EEC5A
tetradic
#5A7EEC #EC5AC7 #ECC85A #5AEC7F
square
#5A7EEC #EC5AC7 #ECC85A #5AEC7F
split-complementary
#5A7EEC #EC7F5A #C7EC5A
monochromatic
#153DB7 #2353E6 #5A7EEC #91A9F2 #C8D4F9

Accessibility & contrast

On white

3.73
#5A7EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5A7EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EEC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EEC#FFFFFF#000000##000000
##5A7EEC1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BF0
Deuteranopia (green-blind)
#2D7EEA
Tritanopia (blue-blind)
#0097AA
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7eec;
/* rgb */ color: rgb(90, 126, 236);
/* oklch */ color: oklch(62.2% 0.170 267.6);
Tailwind
colors: {
  custom: {
    50: '#95a2f3',
    500: '#5a7eec',
    950: '#000000',
  },
}
SCSS
$custom: #5a7eec;
$custom-light: #95a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7eec",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 225.205,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62152,
    "c": 0.17011,
    "h": 267.6
  },
  "luminance": 0.23151
}

Semantic roles & 50–950 ramp

primary
#5A7EEC
secondary
#EBDEB7
accent
#A80ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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