#5A5CF2#5A5CF2

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

Color values

HEX#5A5CF2
RGBrgb(90, 92, 242)
HSLhsl(239, 85%, 65%)
HSVhsv(239, 63%, 95%)
CMYKcmyk(62.8%, 62%, 0%, 5.1%)
CIE-LABlab(47.28, 43.54, -75.66)
CIE-LCHlch(47.28, 87.29, 299.92°)
OKLaboklab(56.33% 0.0236 -0.218)
OKLCHoklch(56.33% 0.219 276.2)
XYZxyz(24.0654, 16.2368, 85.8530)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CF2 #F2F05A
analogous
#5AA8F2 #5A5CF2 #A45AF2
triadic
#5A5CF2 #F25A5C #5CF25A
tetradic
#5A5CF2 #F25AA8 #F2F05A #5AF2A4
square
#5A5CF2 #F25AA8 #F2F05A #5AF2A4
split-complementary
#5A5CF2 #F2A45A #A8F25A
monochromatic
#0F12C2 #2124EE #5A5CF2 #9394F6 #CBCCFB

Accessibility & contrast

On white

4.94
#5A5CF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5A5CF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CF2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CF2#FFFFFF#000000##FFFFFF
##5A5CF21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5cf2;
/* rgb */ color: rgb(90, 92, 242);
/* oklch */ color: oklch(56.3% 0.219 276.2);
Tailwind
colors: {
  custom: {
    50: '#988af7',
    500: '#5a5cf2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cf2;
$custom-light: #988af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cf2",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 242
  },
  "hsl": {
    "h": 239.211,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56333,
    "c": 0.21926,
    "h": 276.2
  },
  "luminance": 0.16239
}

Semantic roles & 50–950 ramp

primary
#5A5CF2
secondary
#EEEDBA
accent
#DF04E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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