#5A62E4#5A62E4

#5A62E4 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 56.3% C 0.194 H 275.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5A62E4
RGBrgb(90, 98, 228)
HSLhsl(237, 72%, 62%)
HSVhsv(237, 61%, 89%)
CMYKcmyk(60.5%, 57%, 0%, 10.6%)
CIE-LABlab(47.63, 35.40, -67.21)
CIE-LCHlch(47.63, 75.96, 297.77°)
OKLaboklab(56.27% 0.0188 -0.1931)
OKLCHoklch(56.27% 0.194 275.6)
XYZxyz(22.5832, 16.5087, 75.3802)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A62E4 #E4DC5A
analogous
#5AA7E4 #5A62E4 #975AE4
triadic
#5A62E4 #E45A62 #62E45A
tetradic
#5A62E4 #E45AA7 #E4DC5A #5AE497
square
#5A62E4 #E45AA7 #E4DC5A #5AE497
split-complementary
#5A62E4 #E4975A #A7E45A
monochromatic
#1C24A8 #2530DB #5A62E4 #8F94ED #C3C6F5

Accessibility & contrast

On white

4.88
#5A62E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5A62E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A62E4
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A62E4#FFFFFF#000000##FFFFFF
##5A62E41.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#006BE1
Tritanopia (blue-blind)
#008199
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a62e4;
/* rgb */ color: rgb(90, 98, 228);
/* oklch */ color: oklch(56.3% 0.194 275.6);
Tailwind
colors: {
  custom: {
    50: '#958eed',
    500: '#5a62e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a62e4;
$custom-light: #958eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a62e4",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 236.522,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56265,
    "c": 0.19404,
    "h": 275.6
  },
  "luminance": 0.1651
}

Semantic roles & 50–950 ramp

primary
#5A62E4
secondary
#E6E3B4
accent
#C912D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A62E4

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

Preview Lab → · Contrast checker → · Palette generator →

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