#5A5CF8#5A5CF8

#5A5CF8 is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.8% C 0.227 H 275.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A5CF8
RGBrgb(90, 92, 248)
HSLhsl(239, 92%, 66%)
HSVhsv(239, 64%, 97%)
CMYKcmyk(63.7%, 62.9%, 0%, 2.7%)
CIE-LABlab(47.76, 45.47, -78.24)
CIE-LCHlch(47.76, 90.49, 300.16°)
OKLaboklab(56.83% 0.0232 -0.2256)
OKLCHoklch(56.83% 0.227 275.9)
XYZxyz(24.9813, 16.6031, 90.6770)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CF8 #F8F65A
analogous
#5AABF8 #5A5CF8 #A75AF8
triadic
#5A5CF8 #F85A5C #5CF85A
tetradic
#5A5CF8 #F85AAB #F8F65A #5AF8A7
square
#5A5CF8 #F85AAB #F8F65A #5AF8A7
split-complementary
#5A5CF8 #F8A75A #ABF85A
monochromatic
#090BCF #1F22F6 #5A5CF8 #9596FA #CFD0FD

Accessibility & contrast

On white

4.86
#5A5CF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5A5CF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CF8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CF8#FFFFFF#000000##FFFFFF
##5A5CF81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FD
Deuteranopia (green-blind)
#006AF5
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5cf8;
/* rgb */ color: rgb(90, 92, 248);
/* oklch */ color: oklch(56.8% 0.227 275.9);
Tailwind
colors: {
  custom: {
    50: '#998afc',
    500: '#5a5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cf8;
$custom-light: #998afc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cf8",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 239.241,
    "s": 91.86,
    "l": 66.275
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.22676,
    "h": 275.9
  },
  "luminance": 0.16605
}

Semantic roles & 50–950 ramp

primary
#5A5CF8
secondary
#F1F0BD
accent
#E300E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5A5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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