#5A7EC9#5A7EC9

#5A7EC9 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.0% C 0.122 H 263.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A7EC9
RGBrgb(90, 126, 201)
HSLhsl(221, 51%, 57%)
HSVhsv(221, 55%, 79%)
CMYKcmyk(55.2%, 37.3%, 0%, 21.2%)
CIE-LABlab(53.29, 9.34, -42.84)
CIE-LCHlch(53.29, 43.85, 282.30°)
OKLaboklab(60.03% -0.0134 -0.1213)
OKLCHoklch(60.03% 0.122 263.7)
XYZxyz(22.2163, 21.3107, 58.1897)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EC9 #C9A55A
analogous
#5AB5C9 #5A7EC9 #6E5AC9
triadic
#5A7EC9 #C95A7E #7EC95A
tetradic
#5A7EC9 #C95AB5 #C9A55A #5AC96E
square
#5A7EC9 #C95AB5 #C9A55A #5AC96E
split-complementary
#5A7EC9 #C96E5A #B5C95A
monochromatic
#2A457F #395EAD #5A7EC9 #88A2D8 #B6C6E7

Accessibility & contrast

On white

3.99
#5A7EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#5A7EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EC9
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EC9#FFFFFF#000000##000000
##5A7EC91.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F85CC
Deuteranopia (green-blind)
#527BC7
Tritanopia (blue-blind)
#168E9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7ec9;
/* rgb */ color: rgb(90, 126, 201);
/* oklch */ color: oklch(60.0% 0.122 263.7);
Tailwind
colors: {
  custom: {
    50: '#90a3da',
    500: '#5a7ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ec9;
$custom-light: #90a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ec9",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 201
  },
  "hsl": {
    "h": 220.541,
    "s": 50.685,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60034,
    "c": 0.12199,
    "h": 263.7
  },
  "luminance": 0.21312
}

Semantic roles & 50–950 ramp

primary
#5A7EC9
secondary
#D6C7A9
accent
#AD4EDA
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #5A7EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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