#5A6BF5#5A6BF5

#5A6BF5 is a mid, highly saturated blue. Relative luminance 0.193; OKLCH L 59.2% C 0.205 H 273.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A6BF5
RGBrgb(90, 107, 245)
HSLhsl(233, 89%, 66%)
HSVhsv(233, 63%, 96%)
CMYKcmyk(63.3%, 56.3%, 0%, 3.9%)
CIE-LABlab(51.01, 35.52, -71.27)
CIE-LCHlch(51.01, 79.63, 296.49°)
OKLaboklab(59.16% 0.0111 -0.205)
OKLCHoklch(59.16% 0.205 273.1)
XYZxyz(25.9501, 19.2794, 88.7223)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6BF5 #F5E45A
analogous
#5AB9F5 #5A6BF5 #965AF5
triadic
#5A6BF5 #F55A6B #6BF55A
tetradic
#5A6BF5 #F55AB9 #F5E45A #5AF596
square
#5A6BF5 #F55AB9 #F5E45A #5AF596
split-complementary
#5A6BF5 #F5965A #B9F55A
monochromatic
#0C21C8 #2037F2 #5A6BF5 #949FF8 #CDD3FC

Accessibility & contrast

On white

4.32
#5A6BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5A6BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6BF5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6BF5#FFFFFF#000000##000000
##5A6BF51.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FA
Deuteranopia (green-blind)
#0073F2
Tritanopia (blue-blind)
#008CA6
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6bf5;
/* rgb */ color: rgb(90, 107, 245);
/* oklch */ color: oklch(59.2% 0.205 273.1);
Tailwind
colors: {
  custom: {
    50: '#9895f9',
    500: '#5a6bf5',
    950: '#000000',
  },
}
SCSS
$custom: #5a6bf5;
$custom-light: #9895f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6bf5",
  "rgb": {
    "r": 90,
    "g": 107,
    "b": 245
  },
  "hsl": {
    "h": 233.419,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.59159,
    "c": 0.20526,
    "h": 273.1
  },
  "luminance": 0.19282
}

Semantic roles & 50–950 ramp

primary
#5A6BF5
secondary
#EFEABC
accent
#CC00E5
background
#FAF9FF
surface
#F4F1FF
border
#CECBD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5A6BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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