#5A7CD7#5A7CD7

#5A7CD7 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.4% C 0.144 H 266.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5A7CD7
RGBrgb(90, 124, 215)
HSLhsl(224, 61%, 60%)
HSVhsv(224, 58%, 84%)
CMYKcmyk(58.1%, 42.3%, 0%, 15.7%)
CIE-LABlab(53.49, 15.14, -50.46)
CIE-LCHlch(53.49, 52.68, 286.70°)
OKLaboklab(60.43% -0.0083 -0.1436)
OKLCHoklch(60.43% 0.144 266.7)
XYZxyz(23.6857, 21.4933, 67.1773)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CD7 #D7B55A
analogous
#5ABBD7 #5A7CD7 #775AD7
triadic
#5A7CD7 #D75A7C #7CD75A
tetradic
#5A7CD7 #D75ABB #D7B55A #5AD777
square
#5A7CD7 #D75ABB #D7B55A #5AD777
split-complementary
#5A7CD7 #D7775A #BBD75A
monochromatic
#244293 #3058C4 #5A7CD7 #8BA3E3 #BDCAEF

Accessibility & contrast

On white

3.96
#5A7CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#5A7CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CD7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CD7#FFFFFF#000000##000000
##5A7CD71.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5486DB
Deuteranopia (green-blind)
#437BD5
Tritanopia (blue-blind)
#00909F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7cd7;
/* rgb */ color: rgb(90, 124, 215);
/* oklch */ color: oklch(60.4% 0.144 266.7);
Tailwind
colors: {
  custom: {
    50: '#92a1e4',
    500: '#5a7cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cd7;
$custom-light: #92a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cd7",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 223.68,
    "s": 60.976,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60428,
    "c": 0.14383,
    "h": 266.7
  },
  "luminance": 0.21495
}

Semantic roles & 50–950 ramp

primary
#5A7CD7
secondary
#DFD1AE
accent
#B844E4
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E15
muted
#7E7E84

Preview Lab

Preview with #5A7CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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