#5A7DC7#5A7DC7

#5A7DC7 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.7% C 0.120 H 263.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5A7DC7
RGBrgb(90, 125, 199)
HSLhsl(221, 49%, 57%)
HSVhsv(221, 55%, 78%)
CMYKcmyk(54.8%, 37.2%, 0%, 22%)
CIE-LABlab(52.91, 9.30, -42.30)
CIE-LCHlch(52.91, 43.31, 282.40°)
OKLaboklab(59.71% -0.0127 -0.1197)
OKLCHoklch(59.71% 0.12 263.9)
XYZxyz(21.8554, 20.9627, 56.9163)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DC7 #C7A45A
analogous
#5AB4C7 #5A7DC7 #6E5AC7
triadic
#5A7DC7 #C75A7D #7DC75A
tetradic
#5A7DC7 #C75AB4 #C7A45A #5AC76E
square
#5A7DC7 #C75AB4 #C7A45A #5AC76E
split-complementary
#5A7DC7 #C76E5A #B4C75A
monochromatic
#2A457C #3A5EAA #5A7DC7 #88A1D7 #B5C5E6

Accessibility & contrast

On white

4.04
#5A7DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#5A7DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DC7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DC7#FFFFFF#000000##000000
##5A7DC71.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F84CA
Deuteranopia (green-blind)
#527AC5
Tritanopia (blue-blind)
#1A8D98
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a7dc7;
/* rgb */ color: rgb(90, 125, 199);
/* oklch */ color: oklch(59.7% 0.120 263.9);
Tailwind
colors: {
  custom: {
    50: '#90a2d8',
    500: '#5a7dc7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7dc7;
$custom-light: #90a2d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7dc7",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 220.734,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59707,
    "c": 0.12037,
    "h": 263.9
  },
  "luminance": 0.20964
}

Semantic roles & 50–950 ramp

primary
#5A7DC7
secondary
#D5C6A8
accent
#AD4FD9
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F14
muted
#7E7E83

Preview Lab

Preview with #5A7DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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