#5A5CF3#5A5CF3

#5A5CF3 is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.4% C 0.221 H 276.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5A5CF3
RGBrgb(90, 92, 243)
HSLhsl(239, 86%, 65%)
HSVhsv(239, 63%, 95%)
CMYKcmyk(63%, 62.1%, 0%, 4.7%)
CIE-LABlab(47.36, 43.86, -76.09)
CIE-LCHlch(47.36, 87.83, 299.96°)
OKLaboklab(56.42% 0.0235 -0.2193)
OKLCHoklch(56.42% 0.221 276.1)
XYZxyz(24.2160, 16.2970, 86.6461)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CF3 #F3F15A
analogous
#5AA8F3 #5A5CF3 #A55AF3
triadic
#5A5CF3 #F35A5C #5CF35A
tetradic
#5A5CF3 #F35AA8 #F3F15A #5AF3A5
square
#5A5CF3 #F35AA8 #F3F15A #5AF3A5
split-complementary
#5A5CF3 #F3A55A #A8F35A
monochromatic
#0E11C4 #2124EF #5A5CF3 #9394F7 #CCCDFB

Accessibility & contrast

On white

4.93
#5A5CF3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5A5CF3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CF3
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CF3#FFFFFF#000000##FFFFFF
##5A5CF31.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F8
Deuteranopia (green-blind)
#006AF0
Tritanopia (blue-blind)
#00829F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5cf3;
/* rgb */ color: rgb(90, 92, 243);
/* oklch */ color: oklch(56.4% 0.221 276.1);
Tailwind
colors: {
  custom: {
    50: '#988af8',
    500: '#5a5cf3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cf3;
$custom-light: #988af8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cf3",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 243
  },
  "hsl": {
    "h": 239.216,
    "s": 86.441,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56415,
    "c": 0.22052,
    "h": 276.1
  },
  "luminance": 0.16299
}

Semantic roles & 50–950 ramp

primary
#5A5CF3
secondary
#EEEEBB
accent
#E003E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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