#5A5EF2#5A5EF2

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

Color values

HEX#5A5EF2
RGBrgb(90, 94, 242)
HSLhsl(238, 85%, 65%)
HSVhsv(238, 63%, 95%)
CMYKcmyk(62.8%, 61.2%, 0%, 5.1%)
CIE-LABlab(47.74, 42.36, -74.92)
CIE-LCHlch(47.74, 86.06, 299.48°)
OKLaboklab(56.67% 0.022 -0.2158)
OKLCHoklch(56.67% 0.217 275.8)
XYZxyz(24.2409, 16.5879, 85.9115)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EF2 #F2EE5A
analogous
#5AAAF2 #5A5EF2 #A25AF2
triadic
#5A5EF2 #F25A5E #5EF25A
tetradic
#5A5EF2 #F25AAA #F2EE5A #5AF2A2
square
#5A5EF2 #F25AAA #F2EE5A #5AF2A2
split-complementary
#5A5EF2 #F2A25A #AAF25A
monochromatic
#0F14C2 #2127EE #5A5EF2 #9395F6 #CBCDFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5EF2#FFFFFF#000000##FFFFFF
##5A5EF21.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)
#0078F7
Deuteranopia (green-blind)
#006BEF
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5ef2;
/* rgb */ color: rgb(90, 94, 242);
/* oklch */ color: oklch(56.7% 0.217 275.8);
Tailwind
colors: {
  custom: {
    50: '#988cf7',
    500: '#5a5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ef2;
$custom-light: #988cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ef2",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 238.421,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56666,
    "c": 0.21693,
    "h": 275.8
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#5A5EF2
secondary
#EEECBA
accent
#DC04E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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