#5A7ECC#5A7ECC

#5A7ECC is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.2% C 0.126 H 264.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5A7ECC
RGBrgb(90, 126, 204)
HSLhsl(221, 53%, 58%)
HSVhsv(221, 56%, 80%)
CMYKcmyk(55.9%, 38.2%, 0%, 20%)
CIE-LABlab(53.44, 10.32, -44.30)
CIE-LCHlch(53.44, 45.49, 283.11°)
OKLaboklab(60.2% -0.0127 -0.1255)
OKLCHoklch(60.2% 0.126 264.2)
XYZxyz(22.5727, 21.4532, 60.0664)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7ECC #CCA85A
analogous
#5AB7CC #5A7ECC #6F5ACC
triadic
#5A7ECC #CC5A7E #7ECC5A
tetradic
#5A7ECC #CC5AB7 #CCA85A #5ACC6F
square
#5A7ECC #CC5AB7 #CCA85A #5ACC6F
split-complementary
#5A7ECC #CC6F5A #B7CC5A
monochromatic
#294583 #375EB2 #5A7ECC #89A3DA #B7C7E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7ECC#FFFFFF#000000##000000
##5A7ECC1.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)
#5E85CF
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#0E8F9B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7ecc;
/* rgb */ color: rgb(90, 126, 204);
/* oklch */ color: oklch(60.2% 0.126 264.2);
Tailwind
colors: {
  custom: {
    50: '#91a3dc',
    500: '#5a7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ecc;
$custom-light: #91a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ecc",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 221.053,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60203,
    "c": 0.12617,
    "h": 264.2
  },
  "luminance": 0.21455
}

Semantic roles & 50–950 ramp

primary
#5A7ECC
secondary
#D8C9AA
accent
#AF4CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #5A7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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