#5A5BEC#5A5BEC

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

Color values

HEX#5A5BEC
RGBrgb(90, 91, 236)
HSLhsl(240, 79%, 64%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(61.9%, 61.4%, 0%, 7.5%)
CIE-LABlab(46.59, 42.20, -73.42)
CIE-LCHlch(46.59, 84.68, 299.89°)
OKLaboklab(55.68% 0.0247 -0.2114)
OKLCHoklch(55.68% 0.213 276.7)
XYZxyz(23.0929, 15.7101, 81.1560)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BEC #ECEB5A
analogous
#5AA4EC #5A5BEC #A25AEC
triadic
#5A5BEC #EC5A5B #5BEC5A
tetradic
#5A5BEC #EC5AA4 #ECEB5A #5AECA2
square
#5A5BEC #EC5AA4 #ECEB5A #5AECA2
split-complementary
#5A5BEC #ECA25A #A4EC5A
monochromatic
#1516B7 #2324E6 #5A5BEC #9192F2 #C8C8F9

Accessibility & contrast

On white

5.07
#5A5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5A5BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BEC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BEC#FFFFFF#000000##FFFFFF
##5A5BEC1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5bec;
/* rgb */ color: rgb(90, 91, 236);
/* oklch */ color: oklch(55.7% 0.213 276.7);
Tailwind
colors: {
  custom: {
    50: '#978af3',
    500: '#5a5bec',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bec;
$custom-light: #978af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bec",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 239.589,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55681,
    "c": 0.21286,
    "h": 276.7
  },
  "luminance": 0.15712
}

Semantic roles & 50–950 ramp

primary
#5A5BEC
secondary
#EBEAB7
accent
#DA0ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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