#5791AC#5791AC

#5791AC is a light, moderate cyan. Relative luminance 0.253; OKLCH L 62.7% C 0.073 H 229.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5791AC
RGBrgb(87, 145, 172)
HSLhsl(199, 34%, 51%)
HSVhsv(199, 49%, 67%)
CMYKcmyk(49.4%, 15.7%, 0%, 32.5%)
CIE-LABlab(57.32, -11.39, -20.05)
CIE-LCHlch(57.32, 23.06, 240.39°)
OKLaboklab(62.74% -0.0475 -0.0556)
OKLCHoklch(62.74% 0.073 229.5)
XYZxyz(21.4996, 25.2539, 42.7633)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791AC #AC7257
analogous
#57AC9C #5791AC #5766AC
triadic
#5791AC #AC5791 #91AC57
tetradic
#5791AC #9C57AC #AC7257 #66AC57
square
#5791AC #9C57AC #AC7257 #66AC57
split-complementary
#5791AC #AC5766 #AC9C57
monochromatic
#2D4D5B #416F84 #5791AC #80ACC0 #A9C7D4

Accessibility & contrast

On white

3.47
#5791AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#5791AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791AC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791AC#FFFFFF#000000##000000
##5791AC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#838FAD
Deuteranopia (green-blind)
#7786AC
Tritanopia (blue-blind)
#2B999A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5791ac;
/* rgb */ color: rgb(87, 145, 172);
/* oklch */ color: oklch(62.7% 0.073 229.5);
Tailwind
colors: {
  custom: {
    50: '#8cb1c4',
    500: '#5791ac',
    950: '#000000',
  },
}
SCSS
$custom: #5791ac;
$custom-light: #8cb1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5791ac",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 172
  },
  "hsl": {
    "h": 199.059,
    "s": 33.865,
    "l": 50.784
  },
  "oklch": {
    "l": 0.62743,
    "c": 0.07308,
    "h": 229.5
  },
  "luminance": 0.25256
}

Semantic roles & 50–950 ramp

primary
#5791AC
secondary
#C2A99D
accent
#805ECA
background
#F8FAFC
surface
#F0F5F8
border
#CBCFD1
text
#0C1012
muted
#7D7F81

Preview Lab

Preview with #5791AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5791AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva