#5A5BE6#5A5BE6

#5A5BE6 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.2% C 0.205 H 277.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A5BE6
RGBrgb(90, 91, 230)
HSLhsl(240, 74%, 63%)
HSVhsv(240, 61%, 90%)
CMYKcmyk(60.9%, 60.4%, 0%, 9.8%)
CIE-LABlab(46.13, 40.27, -70.78)
CIE-LCHlch(46.13, 81.44, 299.64°)
OKLaboklab(55.2% 0.025 -0.2037)
OKLCHoklch(55.2% 0.205 277)
XYZxyz(22.2358, 15.3673, 76.6420)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BE6 #E6E55A
analogous
#5AA1E6 #5A5BE6 #9F5AE6
triadic
#5A5BE6 #E65A5B #5BE65A
tetradic
#5A5BE6 #E65AA1 #E6E55A #5AE69F
square
#5A5BE6 #E65AA1 #E6E55A #5AE69F
split-complementary
#5A5BE6 #E69F5A #A1E65A
monochromatic
#1A1BAC #2526DE #5A5BE6 #8F90EE #C4C5F6

Accessibility & contrast

On white

5.15
#5A5BE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5A5BE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BE6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BE6#FFFFFF#000000##FFFFFF
##5A5BE61.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5be6;
/* rgb */ color: rgb(90, 91, 230);
/* oklch */ color: oklch(55.2% 0.205 277.0);
Tailwind
colors: {
  custom: {
    50: '#9689ef',
    500: '#5a5be6',
    950: '#000000',
  },
}
SCSS
$custom: #5a5be6;
$custom-light: #9689ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5be6",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 230
  },
  "hsl": {
    "h": 239.571,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55201,
    "c": 0.2052,
    "h": 277
  },
  "luminance": 0.15369
}

Semantic roles & 50–950 ramp

primary
#5A5BE6
secondary
#E7E7B5
accent
#D410D6
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5A5BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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