#5A64E4#5A64E4

#5A64E4 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 56.6% C 0.192 H 275.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A64E4
RGBrgb(90, 100, 228)
HSLhsl(236, 72%, 62%)
HSVhsv(236, 61%, 89%)
CMYKcmyk(60.5%, 56.1%, 0%, 10.6%)
CIE-LABlab(48.12, 34.18, -66.43)
CIE-LCHlch(48.12, 74.70, 297.23°)
OKLaboklab(56.62% 0.017 -0.1908)
OKLCHoklch(56.62% 0.192 275.1)
XYZxyz(22.7726, 16.8876, 75.4433)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A64E4 #E4DA5A
analogous
#5AA9E4 #5A64E4 #955AE4
triadic
#5A64E4 #E45A64 #64E45A
tetradic
#5A64E4 #E45AA9 #E4DA5A #5AE495
square
#5A64E4 #E45AA9 #E4DA5A #5AE495
split-complementary
#5A64E4 #E4955A #A9E45A
monochromatic
#1C26A8 #2533DB #5A64E4 #8F95ED #C3C7F5

Accessibility & contrast

On white

4.80
#5A64E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A64E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A64E4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A64E4#FFFFFF#000000##FFFFFF
##5A64E41.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#00839A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a64e4;
/* rgb */ color: rgb(90, 100, 228);
/* oklch */ color: oklch(56.6% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#9590ed',
    500: '#5a64e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a64e4;
$custom-light: #9590ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a64e4",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 228
  },
  "hsl": {
    "h": 235.652,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56624,
    "c": 0.19156,
    "h": 275.1
  },
  "luminance": 0.16889
}

Semantic roles & 50–950 ramp

primary
#5A64E4
secondary
#E6E2B4
accent
#C612D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A64E4

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

Preview Lab → · Contrast checker → · Palette generator →

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