#5A7CD6#5A7CD6

#5A7CD6 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.4% C 0.142 H 266.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A7CD6
RGBrgb(90, 124, 214)
HSLhsl(224, 60%, 60%)
HSVhsv(224, 58%, 84%)
CMYKcmyk(57.9%, 42.1%, 0%, 16.1%)
CIE-LABlab(53.43, 14.81, -49.98)
CIE-LCHlch(53.43, 52.13, 286.50°)
OKLaboklab(60.37% -0.0085 -0.1422)
OKLCHoklch(60.37% 0.142 266.6)
XYZxyz(23.5576, 21.4421, 66.5026)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CD6 #D6B45A
analogous
#5ABAD6 #5A7CD6 #765AD6
triadic
#5A7CD6 #D65A7C #7CD65A
tetradic
#5A7CD6 #D65ABA #D6B45A #5AD676
square
#5A7CD6 #D65ABA #D6B45A #5AD676
split-complementary
#5A7CD6 #D6765A #BAD65A
monochromatic
#244291 #3058C2 #5A7CD6 #8BA3E2 #BCCAEE

Accessibility & contrast

On white

3.97
#5A7CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#5A7CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CD6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CD6#FFFFFF#000000##000000
##5A7CD61.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5586D9
Deuteranopia (green-blind)
#447AD4
Tritanopia (blue-blind)
#00909E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7cd6;
/* rgb */ color: rgb(90, 124, 214);
/* oklch */ color: oklch(60.4% 0.142 266.6);
Tailwind
colors: {
  custom: {
    50: '#92a1e3',
    500: '#5a7cd6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cd6;
$custom-light: #92a1e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cd6",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 223.548,
    "s": 60.194,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60368,
    "c": 0.14244,
    "h": 266.6
  },
  "luminance": 0.21444
}

Semantic roles & 50–950 ramp

primary
#5A7CD6
secondary
#DED1AE
accent
#B844E3
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0E15
muted
#7E7E83

Preview Lab

Preview with #5A7CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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