#5A5FF4#5A5FF4

#5A5FF4 is a mid, highly saturated blue. Relative luminance 0.169; OKLCH L 57.0% C 0.218 H 275.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A5FF4
RGBrgb(90, 95, 244)
HSLhsl(238, 88%, 65%)
HSVhsv(238, 63%, 96%)
CMYKcmyk(63.1%, 61.1%, 0%, 4.3%)
CIE-LABlab(48.12, 42.41, -75.42)
CIE-LCHlch(48.12, 86.52, 299.35°)
OKLaboklab(56.99% 0.0211 -0.2173)
OKLCHoklch(56.99% 0.218 275.5)
XYZxyz(24.6324, 16.8877, 87.5320)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FF4 #F4EF5A
analogous
#5AACF4 #5A5FF4 #A25AF4
triadic
#5A5FF4 #F45A5F #5FF45A
tetradic
#5A5FF4 #F45AAC #F4EF5A #5AF4A2
square
#5A5FF4 #F45AAC #F4EF5A #5AF4A2
split-complementary
#5A5FF4 #F4A25A #ACF45A
monochromatic
#0D13C6 #2127F0 #5A5FF4 #9397F8 #CDCEFC

Accessibility & contrast

On white

4.80
#5A5FF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A5FF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FF4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FF4#FFFFFF#000000##FFFFFF
##5A5FF41.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F9
Deuteranopia (green-blind)
#006BF1
Tritanopia (blue-blind)
#0084A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a5ff4;
/* rgb */ color: rgb(90, 95, 244);
/* oklch */ color: oklch(57.0% 0.218 275.5);
Tailwind
colors: {
  custom: {
    50: '#988cf9',
    500: '#5a5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ff4;
$custom-light: #988cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ff4",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 238.052,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56994,
    "c": 0.21828,
    "h": 275.5
  },
  "luminance": 0.1689
}

Semantic roles & 50–950 ramp

primary
#5A5FF4
secondary
#EFEDBB
accent
#DD01E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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