#5A5AF7#5A5AF7

#5A5AF7 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.4% C 0.228 H 276.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5A5AF7
RGBrgb(90, 90, 247)
HSLhsl(240, 91%, 66%)
HSVhsv(240, 64%, 97%)
CMYKcmyk(63.6%, 63.6%, 0%, 3.1%)
CIE-LABlab(47.23, 46.32, -78.54)
CIE-LCHlch(47.23, 91.18, 300.53°)
OKLaboklab(56.42% 0.0248 -0.2264)
OKLCHoklch(56.42% 0.228 276.2)
XYZxyz(24.6556, 16.1993, 89.8051)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AF7 #F7F75A
analogous
#5AA8F7 #5A5AF7 #A85AF7
triadic
#5A5AF7 #F75A5A #5AF75A
tetradic
#5A5AF7 #F75AA8 #F7F75A #5AF7A8
square
#5A5AF7 #F75AA8 #F7F75A #5AF7A8
split-complementary
#5A5AF7 #F7A85A #A8F75A
monochromatic
#0A0ACD #2020F4 #5A5AF7 #9494FA #CFCFFD

Accessibility & contrast

On white

4.95
#5A5AF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5A5AF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AF7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AF7#FFFFFF#000000##FFFFFF
##5A5AF71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FC
Deuteranopia (green-blind)
#0069F4
Tritanopia (blue-blind)
#0082A0
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5af7;
/* rgb */ color: rgb(90, 90, 247);
/* oklch */ color: oklch(56.4% 0.228 276.2);
Tailwind
colors: {
  custom: {
    50: '#9989fb',
    500: '#5a5af7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5af7;
$custom-light: #9989fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5af7",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 240,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.56421,
    "c": 0.22779,
    "h": 276.2
  },
  "luminance": 0.16201
}

Semantic roles & 50–950 ramp

primary
#5A5AF7
secondary
#F0F0BD
accent
#E600E5
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5A5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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