#5A7FF6#5A7FF6

#5A7FF6 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.0% C 0.182 H 267.9°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5A7FF6
RGBrgb(90, 127, 246)
HSLhsl(226, 90%, 66%)
HSVhsv(226, 63%, 96%)
CMYKcmyk(63.4%, 48.4%, 0%, 3.5%)
CIE-LABlab(56.09, 23.67, -63.61)
CIE-LCHlch(56.09, 67.87, 290.41°)
OKLaboklab(63.01% -0.0067 -0.1822)
OKLCHoklch(63.01% 0.182 267.9)
XYZxyz(28.4347, 24.0037, 90.3056)
Luminance0.2401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FF6 #F6D15A
analogous
#5ACDF6 #5A7FF6 #835AF6
triadic
#5A7FF6 #F65A7F #7FF65A
tetradic
#5A7FF6 #F65ACD #F6D15A #5AF683
square
#5A7FF6 #F65ACD #F6D15A #5AF683
split-complementary
#5A7FF6 #F6835A #CDF65A
monochromatic
#0B38CB #2052F3 #5A7FF6 #94ACF9 #CED9FC

Accessibility & contrast

On white

3.62
#5A7FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#5A7FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FF6
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FF6#FFFFFF#000000##000000
##5A7FF61.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8EFA
Deuteranopia (green-blind)
#1A80F4
Tritanopia (blue-blind)
#009BAF
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a7ff6;
/* rgb */ color: rgb(90, 127, 246);
/* oklch */ color: oklch(63.0% 0.182 267.9);
Tailwind
colors: {
  custom: {
    50: '#97a3fa',
    500: '#5a7ff6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ff6;
$custom-light: #97a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ff6",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 246
  },
  "hsl": {
    "h": 225.769,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63006,
    "c": 0.18232,
    "h": 267.9
  },
  "luminance": 0.24006
}

Semantic roles & 50–950 ramp

primary
#5A7FF6
secondary
#F0E3BC
accent
#AF00E6
background
#FAFAFF
surface
#F3F3FF
border
#CDCDD7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5A7FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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