#5A7AC9#5A7AC9

#5A7AC9 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.2% C 0.127 H 266.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5A7AC9
RGBrgb(90, 122, 201)
HSLhsl(223, 51%, 57%)
HSVhsv(223, 55%, 79%)
CMYKcmyk(55.2%, 39.3%, 0%, 21.2%)
CIE-LABlab(52.18, 11.77, -44.59)
CIE-LCHlch(52.18, 46.12, 284.79°)
OKLaboklab(59.18% -0.0088 -0.1264)
OKLCHoklch(59.18% 0.127 266)
XYZxyz(21.7151, 20.3081, 58.0226)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AC9 #C9A95A
analogous
#5AB1C9 #5A7AC9 #725AC9
triadic
#5A7AC9 #C95A7A #7AC95A
tetradic
#5A7AC9 #C95AB1 #C9A95A #5AC972
square
#5A7AC9 #C95AB1 #C9A95A #5AC972
split-complementary
#5A7AC9 #C9725A #B1C95A
monochromatic
#2A427F #395AAD #5A7AC9 #889FD8 #B6C4E7

Accessibility & contrast

On white

4.15
#5A7AC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5A7AC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AC9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AC9#FFFFFF#000000##000000
##5A7AC91.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5982CC
Deuteranopia (green-blind)
#4C78C7
Tritanopia (blue-blind)
#188B98
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a7ac9;
/* rgb */ color: rgb(90, 122, 201);
/* oklch */ color: oklch(59.2% 0.127 266.0);
Tailwind
colors: {
  custom: {
    50: '#90a0da',
    500: '#5a7ac9',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ac9;
$custom-light: #90a0da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ac9",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 201
  },
  "hsl": {
    "h": 222.703,
    "s": 50.685,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5918,
    "c": 0.12672,
    "h": 266
  },
  "luminance": 0.2031
}

Semantic roles & 50–950 ramp

primary
#5A7AC9
secondary
#D6C9A9
accent
#B24EDA
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5A7AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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