#5A5DF2#5A5DF2

#5A5DF2 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.5% C 0.218 H 276.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A5DF2
RGBrgb(90, 93, 242)
HSLhsl(239, 85%, 65%)
HSVhsv(239, 63%, 95%)
CMYKcmyk(62.8%, 61.6%, 0%, 5.1%)
CIE-LABlab(47.51, 42.95, -75.29)
CIE-LCHlch(47.51, 86.68, 299.70°)
OKLaboklab(56.5% 0.0228 -0.2169)
OKLCHoklch(56.5% 0.218 276)
XYZxyz(24.1526, 16.4112, 85.8821)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DF2 #F2EF5A
analogous
#5AA9F2 #5A5DF2 #A35AF2
triadic
#5A5DF2 #F25A5D #5DF25A
tetradic
#5A5DF2 #F25AA9 #F2EF5A #5AF2A3
square
#5A5DF2 #F25AA9 #F2EF5A #5AF2A3
split-complementary
#5A5DF2 #F2A35A #A9F25A
monochromatic
#0F13C2 #2125EE #5A5DF2 #9395F6 #CBCCFB

Accessibility & contrast

On white

4.90
#5A5DF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A5DF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DF2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DF2#FFFFFF#000000##FFFFFF
##5A5DF21.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a5df2;
/* rgb */ color: rgb(90, 93, 242);
/* oklch */ color: oklch(56.5% 0.218 276.0);
Tailwind
colors: {
  custom: {
    50: '#988bf7',
    500: '#5a5df2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5df2;
$custom-light: #988bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5df2",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 238.816,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56499,
    "c": 0.21809,
    "h": 276
  },
  "luminance": 0.16413
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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