#5A7FF7#5A7FF7

#5A7FF7 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.1% C 0.184 H 267.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5A7FF7
RGBrgb(90, 127, 247)
HSLhsl(226, 91%, 66%)
HSVhsv(226, 64%, 97%)
CMYKcmyk(63.6%, 48.6%, 0%, 3.1%)
CIE-LABlab(56.15, 24.00, -64.07)
CIE-LCHlch(56.15, 68.42, 290.54°)
OKLaboklab(63.07% -0.0066 -0.1835)
OKLCHoklch(63.07% 0.184 267.9)
XYZxyz(28.5886, 24.0652, 91.1161)
Luminance0.2407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FF7 #F7D25A
analogous
#5ACDF7 #5A7FF7 #835AF7
triadic
#5A7FF7 #F75A7F #7FF75A
tetradic
#5A7FF7 #F75ACD #F7D25A #5AF783
square
#5A7FF7 #F75ACD #F7D25A #5AF783
split-complementary
#5A7FF7 #F7835A #CDF75A
monochromatic
#0A38CD #2052F4 #5A7FF7 #94ACFA #CFDAFD

Accessibility & contrast

On white

3.61
#5A7FF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5A7FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FF7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FF7#FFFFFF#000000##000000
##5A7FF71.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8EFB
Deuteranopia (green-blind)
#1680F5
Tritanopia (blue-blind)
#009BAF
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a7ff7;
/* rgb */ color: rgb(90, 127, 247);
/* oklch */ color: oklch(63.1% 0.184 267.9);
Tailwind
colors: {
  custom: {
    50: '#97a3fa',
    500: '#5a7ff7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ff7;
$custom-light: #97a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ff7",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 225.86,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63073,
    "c": 0.18366,
    "h": 267.9
  },
  "luminance": 0.24068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A7FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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