#5A7AE7#5A7AE7

#5A7AE7 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.0% C 0.168 H 268.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5A7AE7
RGBrgb(90, 122, 231)
HSLhsl(226, 75%, 63%)
HSVhsv(226, 61%, 91%)
CMYKcmyk(61%, 47.2%, 0%, 9.4%)
CIE-LABlab(53.88, 21.68, -58.82)
CIE-LCHlch(53.88, 62.69, 290.23°)
OKLaboklab(61.03% -0.0038 -0.1682)
OKLCHoklch(61.03% 0.168 268.7)
XYZxyz(25.5949, 21.8601, 78.4564)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AE7 #E7C75A
analogous
#5AC0E7 #5A7AE7 #805AE7
triadic
#5A7AE7 #E75A7A #7AE75A
tetradic
#5A7AE7 #E75AC0 #E7C75A #5AE780
square
#5A7AE7 #E75AC0 #E7C75A #5AE780
split-complementary
#5A7AE7 #E7805A #C0E75A
monochromatic
#193BAD #254FDF #5A7AE7 #8FA5EF #C5D0F7

Accessibility & contrast

On white

3.91
#5A7AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5A7AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AE7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AE7#FFFFFF#000000##000000
##5A7AE71.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4387EB
Deuteranopia (green-blind)
#2A7BE5
Tritanopia (blue-blind)
#0093A5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7ae7;
/* rgb */ color: rgb(90, 122, 231);
/* oklch */ color: oklch(61.0% 0.168 268.7);
Tailwind
colors: {
  custom: {
    50: '#95a0ef',
    500: '#5a7ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ae7;
$custom-light: #95a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ae7",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 231
  },
  "hsl": {
    "h": 226.383,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61028,
    "c": 0.16821,
    "h": 268.7
  },
  "luminance": 0.21862
}

Semantic roles & 50–950 ramp

primary
#5A7AE7
secondary
#E8DCB5
accent
#A90FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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