#5A5AEA#5A5AEA

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

Color values

HEX#5A5AEA
RGBrgb(90, 90, 234)
HSLhsl(240, 77%, 64%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(61.5%, 61.5%, 0%, 8.2%)
CIE-LABlab(46.21, 42.16, -72.91)
CIE-LCHlch(46.21, 84.22, 300.03°)
OKLaboklab(55.35% 0.0257 -0.2099)
OKLCHoklch(55.35% 0.212 277)
XYZxyz(22.7191, 15.4247, 79.6060)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AEA #EAEA5A
analogous
#5AA2EA #5A5AEA #A25AEA
triadic
#5A5AEA #EA5A5A #5AEA5A
tetradic
#5A5AEA #EA5AA2 #EAEA5A #5AEAA2
square
#5A5AEA #EA5AA2 #EAEA5A #5AEAA2
split-complementary
#5A5AEA #EAA25A #A2EA5A
monochromatic
#1717B3 #2424E3 #5A5AEA #9090F1 #C7C7F8

Accessibility & contrast

On white

5.14
#5A5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A5AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AEA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AEA#FFFFFF#000000##FFFFFF
##5A5AEA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0067E7
Tritanopia (blue-blind)
#007E9A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5aea;
/* rgb */ color: rgb(90, 90, 234);
/* oklch */ color: oklch(55.4% 0.211 277.0);
Tailwind
colors: {
  custom: {
    50: '#9789f2',
    500: '#5a5aea',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aea;
$custom-light: #9789f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aea",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 240,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55353,
    "c": 0.2115,
    "h": 277
  },
  "luminance": 0.15427
}

Semantic roles & 50–950 ramp

primary
#5A5AEA
secondary
#E9E9B6
accent
#DA0CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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