#5A5BE2#5A5BE2

#5A5BE2 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 54.9% C 0.200 H 277.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A5BE2
RGBrgb(90, 91, 226)
HSLhsl(240, 70%, 62%)
HSVhsv(240, 60%, 89%)
CMYKcmyk(60.2%, 59.7%, 0%, 11.4%)
CIE-LABlab(45.83, 38.98, -69.01)
CIE-LCHlch(45.83, 79.26, 299.46°)
OKLaboklab(54.89% 0.0252 -0.1985)
OKLCHoklch(54.89% 0.2 277.2)
XYZxyz(21.6806, 15.1452, 73.7176)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BE2 #E2E15A
analogous
#5A9FE2 #5A5BE2 #9D5AE2
triadic
#5A5BE2 #E25A5B #5BE25A
tetradic
#5A5BE2 #E25A9F #E2E15A #5AE29D
square
#5A5BE2 #E25A9F #E2E15A #5AE29D
split-complementary
#5A5BE2 #E29D5A #9FE25A
monochromatic
#1D1EA5 #2627D9 #5A5BE2 #8E8FEB #C2C2F4

Accessibility & contrast

On white

5.21
#5A5BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A5BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BE2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BE2#FFFFFF#000000##FFFFFF
##5A5BE21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#0067DF
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5be2;
/* rgb */ color: rgb(90, 91, 226);
/* oklch */ color: oklch(54.9% 0.200 277.2);
Tailwind
colors: {
  custom: {
    50: '#9589ec',
    500: '#5a5be2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5be2;
$custom-light: #9589ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5be2",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 226
  },
  "hsl": {
    "h": 239.559,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54885,
    "c": 0.20005,
    "h": 277.2
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#5A5BE2
secondary
#E5E5B3
accent
#D113D2
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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