#5A7FC0#5A7FC0

#5A7FC0 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 59.8% C 0.108 H 261.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5A7FC0
RGBrgb(90, 127, 192)
HSLhsl(218, 45%, 55%)
HSVhsv(218, 53%, 75%)
CMYKcmyk(53.1%, 33.9%, 0%, 24.7%)
CIE-LABlab(53.12, 5.85, -37.97)
CIE-LCHlch(53.12, 38.42, 278.76°)
OKLaboklab(59.76% -0.0167 -0.1071)
OKLCHoklch(59.76% 0.108 261.1)
XYZxyz(21.3170, 21.1566, 52.8193)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FC0 #C09B5A
analogous
#5AB2C0 #5A7FC0 #685AC0
triadic
#5A7FC0 #C05A7F #7FC05A
tetradic
#5A7FC0 #C05AB2 #C09B5A #5AC068
square
#5A7FC0 #C05AB2 #C09B5A #5AC068
split-complementary
#5A7FC0 #C0685A #B2C05A
monochromatic
#2C4673 #3D61A0 #5A7FC0 #86A1D1 #B3C4E2

Accessibility & contrast

On white

4.01
#5A7FC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#5A7FC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FC0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FC0#FFFFFF#000000##000000
##5A7FC01.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6584C3
Deuteranopia (green-blind)
#597BBF
Tritanopia (blue-blind)
#248D97
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7fc0;
/* rgb */ color: rgb(90, 127, 192);
/* oklch */ color: oklch(59.8% 0.108 261.1);
Tailwind
colors: {
  custom: {
    50: '#8fa3d3',
    500: '#5a7fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fc0;
$custom-light: #8fa3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fc0",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 192
  },
  "hsl": {
    "h": 218.235,
    "s": 44.737,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59757,
    "c": 0.10837,
    "h": 261.1
  },
  "luminance": 0.21158
}

Semantic roles & 50–950 ramp

primary
#5A7FC0
secondary
#D0C1A6
accent
#A653D4
background
#F9FAFD
surface
#F1F3FA
border
#CBCDD3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5A7FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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