#5A7EF6#5A7EF6

#5A7EF6 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.8% C 0.184 H 268.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5A7EF6
RGBrgb(90, 126, 246)
HSLhsl(226, 90%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.4%, 48.8%, 0%, 3.5%)
CIE-LABlab(55.83, 24.28, -64.03)
CIE-LCHlch(55.83, 68.48, 290.76°)
OKLaboklab(62.81% -0.0058 -0.1834)
OKLCHoklch(62.81% 0.184 268.2)
XYZxyz(28.3062, 23.7466, 90.2628)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EF6 #F6D25A
analogous
#5ACCF6 #5A7EF6 #845AF6
triadic
#5A7EF6 #F65A7E #7EF65A
tetradic
#5A7EF6 #F65ACC #F6D25A #5AF684
square
#5A7EF6 #F65ACC #F6D25A #5AF684
split-complementary
#5A7EF6 #F6845A #CCF65A
monochromatic
#0B37CB #2051F3 #5A7EF6 #94ABF9 #CED9FC

Accessibility & contrast

On white

3.65
#5A7EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5A7EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EF6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EF6#FFFFFF#000000##000000
##5A7EF61.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8DFA
Deuteranopia (green-blind)
#147FF4
Tritanopia (blue-blind)
#009AAE
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ef6;
/* rgb */ color: rgb(90, 126, 246);
/* oklch */ color: oklch(62.8% 0.184 268.2);
Tailwind
colors: {
  custom: {
    50: '#97a2fa',
    500: '#5a7ef6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ef6;
$custom-light: #97a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ef6",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 226.154,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6281,
    "c": 0.18353,
    "h": 268.2
  },
  "luminance": 0.23749
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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