#5A5BEB#5A5BEB

#5A5BEB is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.6% C 0.212 H 276.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A5BEB
RGBrgb(90, 91, 235)
HSLhsl(240, 78%, 64%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(61.7%, 61.3%, 0%, 7.8%)
CIE-LABlab(46.51, 41.88, -72.98)
CIE-LCHlch(46.51, 84.15, 299.85°)
OKLaboklab(55.6% 0.0248 -0.2101)
OKLCHoklch(55.6% 0.212 276.7)
XYZxyz(22.9481, 15.6522, 80.3930)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BEB #EBEA5A
analogous
#5AA3EB #5A5BEB #A15AEB
triadic
#5A5BEB #EB5A5B #5BEB5A
tetradic
#5A5BEB #EB5AA3 #EBEA5A #5AEBA1
square
#5A5BEB #EB5AA3 #EBEA5A #5AEBA1
split-complementary
#5A5BEB #EBA15A #A3EB5A
monochromatic
#1617B5 #2325E4 #5A5BEB #9191F2 #C7C8F8

Accessibility & contrast

On white

5.08
#5A5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A5BEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BEB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BEB#FFFFFF#000000##FFFFFF
##5A5BEB1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0068E8
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5beb;
/* rgb */ color: rgb(90, 91, 235);
/* oklch */ color: oklch(55.6% 0.212 276.7);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5a5beb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5beb;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5beb",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 239.586,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55601,
    "c": 0.21158,
    "h": 276.7
  },
  "luminance": 0.15654
}

Semantic roles & 50–950 ramp

primary
#5A5BEB
secondary
#EAEAB7
accent
#D90BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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