#5A5CF1#5A5CF1

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

Color values

HEX#5A5CF1
RGBrgb(90, 92, 241)
HSLhsl(239, 84%, 65%)
HSVhsv(239, 63%, 95%)
CMYKcmyk(62.7%, 61.8%, 0%, 5.5%)
CIE-LABlab(47.21, 43.22, -75.23)
CIE-LCHlch(47.21, 86.76, 299.88°)
OKLaboklab(56.25% 0.0236 -0.2167)
OKLCHoklch(56.25% 0.218 276.2)
XYZxyz(23.9156, 16.1769, 85.0642)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CF1 #F1EF5A
analogous
#5AA8F1 #5A5CF1 #A35AF1
triadic
#5A5CF1 #F15A5C #5CF15A
tetradic
#5A5CF1 #F15AA8 #F1EF5A #5AF1A3
square
#5A5CF1 #F15AA8 #F1EF5A #5AF1A3
split-complementary
#5A5CF1 #F1A35A #A8F15A
monochromatic
#1013C0 #2224EC #5A5CF1 #9294F6 #CBCBFB

Accessibility & contrast

On white

4.96
#5A5CF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A5CF1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CF1#FFFFFF#000000##FFFFFF
##5A5CF11.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F6
Deuteranopia (green-blind)
#0069EE
Tritanopia (blue-blind)
#00829E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5cf1;
/* rgb */ color: rgb(90, 92, 241);
/* oklch */ color: oklch(56.3% 0.218 276.2);
Tailwind
colors: {
  custom: {
    50: '#988af7',
    500: '#5a5cf1',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cf1;
$custom-light: #988af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cf1",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 241
  },
  "hsl": {
    "h": 239.205,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.56252,
    "c": 0.218,
    "h": 276.2
  },
  "luminance": 0.16179
}

Semantic roles & 50–950 ramp

primary
#5A5CF1
secondary
#EDECBA
accent
#DE05E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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