#5A6FF4#5A6FF4

#5A6FF4 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.8% C 0.199 H 272.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A6FF4
RGBrgb(90, 111, 244)
HSLhsl(232, 88%, 65%)
HSVhsv(232, 63%, 96%)
CMYKcmyk(63.1%, 54.5%, 0%, 4.3%)
CIE-LABlab(51.92, 32.76, -69.24)
CIE-LCHlch(51.92, 76.60, 295.32°)
OKLaboklab(59.81% 0.0076 -0.1989)
OKLCHoklch(59.81% 0.199 272.2)
XYZxyz(26.2246, 20.0719, 88.0627)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FF4 #F4DF5A
analogous
#5ABCF4 #5A6FF4 #925AF4
triadic
#5A6FF4 #F45A6F #6FF45A
tetradic
#5A6FF4 #F45ABC #F4DF5A #5AF492
square
#5A6FF4 #F45ABC #F4DF5A #5AF492
split-complementary
#5A6FF4 #F4925A #BCF45A
monochromatic
#0D26C6 #213DF0 #5A6FF4 #93A1F8 #CDD3FC

Accessibility & contrast

On white

4.19
#5A6FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5A6FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FF4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FF4#FFFFFF#000000##000000
##5A6FF41.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F9
Deuteranopia (green-blind)
#0075F1
Tritanopia (blue-blind)
#008FA7
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a6ff4;
/* rgb */ color: rgb(90, 111, 244);
/* oklch */ color: oklch(59.8% 0.199 272.2);
Tailwind
colors: {
  custom: {
    50: '#9798f9',
    500: '#5a6ff4',
    950: '#000000',
  },
}
SCSS
$custom: #5a6ff4;
$custom-light: #9798f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6ff4",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 244
  },
  "hsl": {
    "h": 231.818,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59814,
    "c": 0.1991,
    "h": 272.2
  },
  "luminance": 0.20074
}

Semantic roles & 50–950 ramp

primary
#5A6FF4
secondary
#EFE8BB
accent
#C501E4
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5A6FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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