#5A7BF6#5A7BF6

#5A7BF6 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.2% C 0.187 H 269.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5A7BF6
RGBrgb(90, 123, 246)
HSLhsl(227, 90%, 66%)
HSVhsv(227, 63%, 96%)
CMYKcmyk(63.4%, 50%, 0%, 3.5%)
CIE-LABlab(55.06, 26.10, -65.27)
CIE-LCHlch(55.06, 70.30, 291.80°)
OKLaboklab(62.22% -0.003 -0.1871)
OKLCHoklch(62.22% 0.187 269.1)
XYZxyz(27.9283, 22.9909, 90.1368)
Luminance0.2299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BF6 #F6D55A
analogous
#5AC9F6 #5A7BF6 #875AF6
triadic
#5A7BF6 #F65A7B #7BF65A
tetradic
#5A7BF6 #F65AC9 #F6D55A #5AF687
square
#5A7BF6 #F65AC9 #F6D55A #5AF687
split-complementary
#5A7BF6 #F6875A #C9F65A
monochromatic
#0B34CB #204DF3 #5A7BF6 #94A9F9 #CED8FC

Accessibility & contrast

On white

3.75
#5A7BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5A7BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BF6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BF6#FFFFFF#000000##000000
##5A7BF61.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#358BFA
Deuteranopia (green-blind)
#007DF3
Tritanopia (blue-blind)
#0098AD
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7bf6;
/* rgb */ color: rgb(90, 123, 246);
/* oklch */ color: oklch(62.2% 0.187 269.1);
Tailwind
colors: {
  custom: {
    50: '#97a0fa',
    500: '#5a7bf6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7bf6;
$custom-light: #97a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7bf6",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 227.308,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62225,
    "c": 0.18715,
    "h": 269.1
  },
  "luminance": 0.22993
}

Semantic roles & 50–950 ramp

primary
#5A7BF6
secondary
#F0E5BC
accent
#B500E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5A7BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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