#5A5CEC#5A5CEC

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

Color values

HEX#5A5CEC
RGBrgb(90, 92, 236)
HSLhsl(239, 79%, 64%)
HSVhsv(239, 62%, 93%)
CMYKcmyk(61.9%, 61%, 0%, 7.5%)
CIE-LABlab(46.82, 41.61, -73.05)
CIE-LCHlch(46.82, 84.07, 299.67°)
OKLaboklab(55.85% 0.0239 -0.2103)
OKLCHoklch(55.85% 0.212 276.5)
XYZxyz(23.1790, 15.8822, 81.1847)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CEC #ECEA5A
analogous
#5AA5EC #5A5CEC #A15AEC
triadic
#5A5CEC #EC5A5C #5CEC5A
tetradic
#5A5CEC #EC5AA5 #ECEA5A #5AECA1
square
#5A5CEC #EC5AA5 #ECEA5A #5AECA1
split-complementary
#5A5CEC #ECA15A #A5EC5A
monochromatic
#1517B7 #2326E6 #5A5CEC #9192F2 #C8C8F9

Accessibility & contrast

On white

5.03
#5A5CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5A5CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CEC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CEC#FFFFFF#000000##FFFFFF
##5A5CEC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5cec;
/* rgb */ color: rgb(90, 92, 236);
/* oklch */ color: oklch(55.8% 0.212 276.5);
Tailwind
colors: {
  custom: {
    50: '#978af3',
    500: '#5a5cec',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cec;
$custom-light: #978af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cec",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 239.178,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55848,
    "c": 0.21167,
    "h": 276.5
  },
  "luminance": 0.15884
}

Semantic roles & 50–950 ramp

primary
#5A5CEC
secondary
#EBEAB7
accent
#D90ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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