#5A5BE7#5A5BE7

#5A5BE7 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.3% C 0.206 H 276.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A5BE7
RGBrgb(90, 91, 231)
HSLhsl(240, 75%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(61%, 60.6%, 0%, 9.4%)
CIE-LABlab(46.21, 40.60, -71.22)
CIE-LCHlch(46.21, 81.98, 299.68°)
OKLaboklab(55.28% 0.025 -0.205)
OKLCHoklch(55.28% 0.206 276.9)
XYZxyz(22.3767, 15.4236, 77.3837)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BE7 #E7E65A
analogous
#5AA2E7 #5A5BE7 #9F5AE7
triadic
#5A5BE7 #E75A5B #5BE75A
tetradic
#5A5BE7 #E75AA2 #E7E65A #5AE79F
square
#5A5BE7 #E75AA2 #E7E65A #5AE79F
split-complementary
#5A5BE7 #E79F5A #A2E75A
monochromatic
#191AAD #2526DF #5A5BE7 #8F90EF #C5C5F7

Accessibility & contrast

On white

5.14
#5A5BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A5BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BE7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BE7#FFFFFF#000000##FFFFFF
##5A5BE71.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5be7;
/* rgb */ color: rgb(90, 91, 231);
/* oklch */ color: oklch(55.3% 0.206 276.9);
Tailwind
colors: {
  custom: {
    50: '#9689f0',
    500: '#5a5be7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5be7;
$custom-light: #9689f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5be7",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 239.574,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.20648,
    "h": 276.9
  },
  "luminance": 0.15425
}

Semantic roles & 50–950 ramp

primary
#5A5BE7
secondary
#E8E7B5
accent
#D50FD7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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