#5A62EC#5A62EC

#5A62EC is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 56.9% C 0.204 H 275.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A62EC
RGBrgb(90, 98, 236)
HSLhsl(237, 79%, 64%)
HSVhsv(237, 62%, 93%)
CMYKcmyk(61.9%, 58.5%, 0%, 7.5%)
CIE-LABlab(48.21, 38.01, -70.78)
CIE-LCHlch(48.21, 80.34, 298.24°)
OKLaboklab(56.88% 0.0188 -0.2036)
OKLCHoklch(56.88% 0.204 275.3)
XYZxyz(23.7195, 16.9632, 81.3649)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62EC #ECE45A
analogous
#5AABEC #5A62EC #9B5AEC
triadic
#5A62EC #EC5A62 #62EC5A
tetradic
#5A62EC #EC5AAB #ECE45A #5AEC9B
square
#5A62EC #EC5AAB #ECE45A #5AEC9B
split-complementary
#5A62EC #EC9B5A #ABEC5A
monochromatic
#151EB7 #232EE6 #5A62EC #9196F2 #C8CAF9

Accessibility & contrast

On white

4.78
#5A62EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5A62EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62EC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62EC#FFFFFF#000000##FFFFFF
##5A62EC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#00849E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a62ec;
/* rgb */ color: rgb(90, 98, 236);
/* oklch */ color: oklch(56.9% 0.204 275.3);
Tailwind
colors: {
  custom: {
    50: '#978ef3',
    500: '#5a62ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a62ec;
$custom-light: #978ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62ec",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 236.712,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56876,
    "c": 0.20448,
    "h": 275.3
  },
  "luminance": 0.16965
}

Semantic roles & 50–950 ramp

primary
#5A62EC
secondary
#EBE8B7
accent
#D00ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A62EC

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

Preview Lab → · Contrast checker → · Palette generator →

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