#5A5AEB#5A5AEB

#5A5AEB is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.4% C 0.213 H 276.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A5AEB
RGBrgb(90, 90, 235)
HSLhsl(240, 78%, 64%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(61.7%, 61.7%, 0%, 7.8%)
CIE-LABlab(46.29, 42.48, -73.35)
CIE-LCHlch(46.29, 84.76, 300.07°)
OKLaboklab(55.43% 0.0256 -0.2112)
OKLCHoklch(55.43% 0.213 276.9)
XYZxyz(22.8631, 15.4823, 80.3647)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AEB #EBEB5A
analogous
#5AA2EB #5A5AEB #A25AEB
triadic
#5A5AEB #EB5A5A #5AEB5A
tetradic
#5A5AEB #EB5AA2 #EBEB5A #5AEBA2
square
#5A5AEB #EB5AA2 #EBEB5A #5AEBA2
split-complementary
#5A5AEB #EBA25A #A2EB5A
monochromatic
#1616B5 #2323E4 #5A5AEB #9191F2 #C7C7F8

Accessibility & contrast

On white

5.13
#5A5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5A5AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AEB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AEB#FFFFFF#000000##FFFFFF
##5A5AEB1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#0067E8
Tritanopia (blue-blind)
#007E9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5aeb;
/* rgb */ color: rgb(90, 90, 235);
/* oklch */ color: oklch(55.4% 0.213 276.9);
Tailwind
colors: {
  custom: {
    50: '#9789f2',
    500: '#5a5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aeb;
$custom-light: #9789f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aeb",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 240,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.21278,
    "h": 276.9
  },
  "luminance": 0.15484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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