#5A7FAC#5A7FAC

#5A7FAC is a mid, moderate cyan. Relative luminance 0.203; OKLCH L 58.7% C 0.081 H 253.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5A7FAC
RGBrgb(90, 127, 172)
HSLhsl(213, 33%, 51%)
HSVhsv(213, 48%, 67%)
CMYKcmyk(47.7%, 26.2%, 0%, 32.5%)
CIE-LABlab(52.21, -0.37, -27.91)
CIE-LCHlch(52.21, 27.91, 269.24°)
OKLaboklab(58.74% -0.0226 -0.078)
OKLCHoklch(58.74% 0.081 253.9)
XYZxyz(19.2497, 20.3297, 41.9314)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FAC #AC875A
analogous
#5AA8AC #5A7FAC #5E5AAC
triadic
#5A7FAC #AC5A7F #7FAC5A
tetradic
#5A7FAC #AC5AA8 #AC875A #5AAC5E
square
#5A7FAC #AC5AA8 #AC875A #5AAC5E
split-complementary
#5A7FAC #AC5E5A #A8AC5A
monochromatic
#2F445D #436186 #5A7FAC #839FC0 #ABBED5

Accessibility & contrast

On white

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

On black

5.07
#5A7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FAC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FAC#FFFFFF#000000##000000
##5A7FAC1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E81AE
Deuteranopia (green-blind)
#6479AB
Tritanopia (blue-blind)
#37898F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a7fac;
/* rgb */ color: rgb(90, 127, 172);
/* oklch */ color: oklch(58.7% 0.081 253.9);
Tailwind
colors: {
  custom: {
    50: '#8da3c5',
    500: '#5a7fac',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fac;
$custom-light: #8da3c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fac",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 212.927,
    "s": 33.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58744,
    "c": 0.08116,
    "h": 253.9
  },
  "luminance": 0.20331
}

Semantic roles & 50–950 ramp

primary
#5A7FAC
secondary
#C3B39F
accent
#995FC9
background
#F8FAFC
surface
#F0F3F8
border
#CBCDD1
text
#0C0F12
muted
#7D7F81

Preview Lab

Preview with #5A7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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