#5A7EE7#5A7EE7

#5A7EE7 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.8% C 0.163 H 267.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5A7EE7
RGBrgb(90, 126, 231)
HSLhsl(225, 75%, 63%)
HSVhsv(225, 61%, 91%)
CMYKcmyk(61%, 45.5%, 0%, 9.4%)
CIE-LABlab(54.93, 19.24, -57.14)
CIE-LCHlch(54.93, 60.29, 288.61°)
OKLaboklab(61.83% -0.0077 -0.1632)
OKLCHoklch(61.83% 0.163 267.3)
XYZxyz(26.0962, 22.8626, 78.6235)
Luminance0.2286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EE7 #E7C35A
analogous
#5AC4E7 #5A7EE7 #7C5AE7
triadic
#5A7EE7 #E75A7E #7EE75A
tetradic
#5A7EE7 #E75AC4 #E7C35A #5AE77C
square
#5A7EE7 #E75AC4 #E7C35A #5AE77C
split-complementary
#5A7EE7 #E77C5A #C4E75A
monochromatic
#193FAD #2554DF #5A7EE7 #8FA8EF #C5D2F7

Accessibility & contrast

On white

3.77
#5A7EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5A7EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EE7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EE7#FFFFFF#000000##000000
##5A7EE71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8AEB
Deuteranopia (green-blind)
#347DE5
Tritanopia (blue-blind)
#0096A7
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7ee7;
/* rgb */ color: rgb(90, 126, 231);
/* oklch */ color: oklch(61.8% 0.163 267.3);
Tailwind
colors: {
  custom: {
    50: '#95a2ef',
    500: '#5a7ee7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ee7;
$custom-light: #95a2ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ee7",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 224.681,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61831,
    "c": 0.16334,
    "h": 267.3
  },
  "luminance": 0.22865
}

Semantic roles & 50–950 ramp

primary
#5A7EE7
secondary
#E8DBB5
accent
#A40FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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