#5A7EEA#5A7EEA

#5A7EEA is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.0% C 0.167 H 267.5°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5A7EEA
RGBrgb(90, 126, 234)
HSLhsl(225, 77%, 64%)
HSVhsv(225, 62%, 92%)
CMYKcmyk(61.5%, 46.2%, 0%, 8.2%)
CIE-LABlab(55.11, 20.24, -58.53)
CIE-LCHlch(55.11, 61.93, 289.08°)
OKLaboklab(62.02% -0.0073 -0.1673)
OKLCHoklch(62.02% 0.167 267.5)
XYZxyz(26.5235, 23.0336, 80.8741)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EEA #EAC65A
analogous
#5AC6EA #5A7EEA #7E5AEA
triadic
#5A7EEA #EA5A7E #7EEA5A
tetradic
#5A7EEA #EA5AC6 #EAC65A #5AEA7E
square
#5A7EEA #EA5AC6 #EAC65A #5AEA7E
split-complementary
#5A7EEA #EA7E5A #C6EA5A
monochromatic
#173EB3 #2454E3 #5A7EEA #90A8F1 #C7D3F8

Accessibility & contrast

On white

3.75
#5A7EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5A7EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EEA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EEA#FFFFFF#000000##000000
##5A7EEA1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEE
Deuteranopia (green-blind)
#307EE8
Tritanopia (blue-blind)
#0097A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a7eea;
/* rgb */ color: rgb(90, 126, 234);
/* oklch */ color: oklch(62.0% 0.167 267.5);
Tailwind
colors: {
  custom: {
    50: '#95a2f1',
    500: '#5a7eea',
    950: '#000000',
  },
}
SCSS
$custom: #5a7eea;
$custom-light: #95a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7eea",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 225,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62023,
    "c": 0.16742,
    "h": 267.5
  },
  "luminance": 0.23036
}

Semantic roles & 50–950 ramp

primary
#5A7EEA
secondary
#E9DDB6
accent
#A60CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85

Preview Lab

Preview with #5A7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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