#5A5CEB#5A5CEB

#5A5CEB is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.8% C 0.210 H 276.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5A5CEB
RGBrgb(90, 92, 235)
HSLhsl(239, 78%, 64%)
HSVhsv(239, 62%, 92%)
CMYKcmyk(61.7%, 60.9%, 0%, 7.8%)
CIE-LABlab(46.74, 41.29, -72.61)
CIE-LCHlch(46.74, 83.53, 299.62°)
OKLaboklab(55.77% 0.0239 -0.209)
OKLCHoklch(55.77% 0.21 276.5)
XYZxyz(23.0341, 15.8243, 80.4217)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CEB #EBE95A
analogous
#5AA4EB #5A5CEB #A05AEB
triadic
#5A5CEB #EB5A5C #5CEB5A
tetradic
#5A5CEB #EB5AA4 #EBE95A #5AEBA0
square
#5A5CEB #EB5AA4 #EBE95A #5AEBA0
split-complementary
#5A5CEB #EBA05A #A4EB5A
monochromatic
#1618B5 #2326E4 #5A5CEB #9192F2 #C7C8F8

Accessibility & contrast

On white

5.04
#5A5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5A5CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CEB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CEB#FFFFFF#000000##FFFFFF
##5A5CEB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5ceb;
/* rgb */ color: rgb(90, 92, 235);
/* oklch */ color: oklch(55.8% 0.210 276.5);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5a5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ceb;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ceb",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 239.172,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55768,
    "c": 0.2104,
    "h": 276.5
  },
  "luminance": 0.15826
}

Semantic roles & 50–950 ramp

primary
#5A5CEB
secondary
#EAE9B7
accent
#D80BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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