#5A7DF6#5A7DF6

#5A7DF6 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.6% C 0.185 H 268.5°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5A7DF6
RGBrgb(90, 125, 246)
HSLhsl(227, 90%, 66%)
HSVhsv(227, 63%, 96%)
CMYKcmyk(63.4%, 49.2%, 0%, 3.5%)
CIE-LABlab(55.58, 24.88, -64.44)
CIE-LCHlch(55.58, 69.08, 291.11°)
OKLaboklab(62.61% -0.0049 -0.1847)
OKLCHoklch(62.61% 0.185 268.5)
XYZxyz(28.1789, 23.4922, 90.2203)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DF6 #F6D35A
analogous
#5ACBF6 #5A7DF6 #855AF6
triadic
#5A7DF6 #F65A7D #7DF65A
tetradic
#5A7DF6 #F65ACB #F6D35A #5AF685
square
#5A7DF6 #F65ACB #F6D35A #5AF685
split-complementary
#5A7DF6 #F6855A #CBF65A
monochromatic
#0B36CB #204FF3 #5A7DF6 #94ABF9 #CED8FC

Accessibility & contrast

On white

3.68
#5A7DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5A7DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DF6
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DF6#FFFFFF#000000##000000
##5A7DF61.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFA
Deuteranopia (green-blind)
#0D7EF4
Tritanopia (blue-blind)
#0099AE
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a7df6;
/* rgb */ color: rgb(90, 125, 246);
/* oklch */ color: oklch(62.6% 0.185 268.5);
Tailwind
colors: {
  custom: {
    50: '#97a2fa',
    500: '#5a7df6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7df6;
$custom-light: #97a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7df6",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 226.538,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62614,
    "c": 0.18473,
    "h": 268.5
  },
  "luminance": 0.23495
}

Semantic roles & 50–950 ramp

primary
#5A7DF6
secondary
#F0E4BC
accent
#B200E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0F17
muted
#7F7E85

Preview Lab

Preview with #5A7DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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