Skip to content

#7f9bac

a balanced, soft blue · cool · closest name: Light Slate Gray

RGB
127, 155, 172
HSL
203°, 21%, 59%
CMYK
26, 10, 0, 33
Luminance
0.3093

At a glance

Every number on this page in one read: what #7f9bac is made of, how bright it looks, and which way it leans.

Hex
#7f9bac
Hue
203°
blue
Saturation
21%
soft
Lightness
59%
balanced
Brightness
67%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3093
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
7.19:1
Closest name
Light Slate Gray
ΔE2000 7
Where it sits
Hue203° of 360°
Saturation21%
Lightness59%
Temperature
Warm ← → Cool79% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#7f9bac
RGBrgb(127, 155, 172)
HSLhsl(203, 21%, 59%)
CMYKcmyk(26%, 10%, 0%, 33%)
LABlab(62.5 -5.8 -12.1)
LCHlch(62.5 13.4 244.4)
OKLCHoklch(0.674 0.040 234.8)
Decimal8362924
Display P3color(display-p3 0.498 0.608 0.675)

Copy-ready code

/* CSS */
color: #7f9bac;
background-color: #7f9bac;
/* Tailwind (arbitrary) */
class="text-[#7f9bac] bg-[#7f9bac]"
/* SCSS */
$brand: #7f9bac;
/* SwiftUI */
Color(red: 0.498, green: 0.608, blue: 0.675)
/* Android */
Color.parseColor("#7f9bac")
/* Flutter */
Color(0xFF7F9BAC)
/* Python / OpenCV (BGR) */
(172, 155, 127)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #7f9bac · 7.19:1
Use #000000AAA at every size.
Aa
White text · 2.92:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.19:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #7f9bac as text scores 2.92:1 on white and 7.19:1 on black.

Accessibility — WCAG contrast

Aa
#7f9bac on white: 2.92:1
AA ✗ fail · AA-large · AAA
Aa
#7f9bac on black: 7.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #939AAD
deuteranopia · #8D95AC
tritanopia · #72A0A0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7f9bac is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F6F8F9
#EDF0F2
#D8DFE4
#BBCAD3
#99AFBD
#7f9bac
#608194
#506B7C
#405663
#314049
#1F282E
Base = 500Lightest = 50 · #F6F8F9Darkest = 950 · #1F282E
:root {
  --brand-50: #F6F8F9;
  --brand-100: #EDF0F2;
  --brand-200: #D8DFE4;
  --brand-300: #BBCAD3;
  --brand-400: #99AFBD;
  --brand-500: #7f9bac;
  --brand-600: #608194;
  --brand-700: #506B7C;
  --brand-800: #405663;
  --brand-900: #314049;
  --brand-950: #1F282E;
  --brand: #7f9bac;
  --brand-ink: #000000;
}

Colors that work with #7f9bac

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F8F9
Tinted page background
Border#CED8DF
Hairlines and dividers
Muted text#5A798B
Captions on the surface
Accent#B0827B
Second voice, not a rival
Dark variant#32434D
Hover, pressed, headers
Light variant#F0F3F5
Selected rows, tints
Dark surface#161E22
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #7f9bac

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#AC907F
Analogous left#7FACA6
Analogous right#7F84AC
Split-complement 1#AC7F84
Split-complement 2#ACA67F
Triadic 1#AC7F9B
Triadic 2#9BAC7F
Tetradic#A67FAC

RGB percentages

Red49.8%
Green60.8%
Blue67.5%

CMYK percentages

Cyan26.2%
Magenta9.9%
Yellow0.0%
Key (black)32.5%

Color previews

#7f9bac text on a black background

contrast 7.19:1

Card sample

#7f9bac text on a white background

contrast 2.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f9bac;
Background color
Panel with #7f9bac background
background-color: #7f9bac;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7f9bac;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(127, 155, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 155, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f9bac;
background: linear-gradient(135deg, #7f9bac, #817FAC);

Monochromatic scale

Palettes built from #7f9bac

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#7f9bac in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#7f9bac, answered

What color is #7f9bac?

#7f9bac is a balanced soft blue, closest to Light Slate Gray (ΔE2000 7). It sits at 203° on the hue wheel with 21% saturation and 59% lightness, which reads as cool.

What is the RGB value of #7f9bac?

rgb(127, 155, 172) — 127 red, 155 green and 172 blue out of 255, or 49.8% / 60.8% / 67.5% by channel.

Is #7f9bac a light or a dark color?

It is a mid-tone. Relative luminance is 0.3093 and perceived brightness is 59%, so black text on it reaches 7.19:1.

Should I use black or white text on #7f9bac?

Black. It scores 7.19:1 against #7f9bac, versus 2.92:1 for white — AAA at any size.

What is the complementary color of #7f9bac?

#AC907F sits directly opposite on the wheel. Softer options are the split-complements #AC7F84 and #ACA67F, which give the same contrast with far less vibration.

What colors go well with #7f9bac?

For interface work: #F6F8F9 as the surface, #CED8DF for borders, #5A798B for secondary text, #B0827B as an accent and #32434D for hover and pressed states. For a palette, the analogous pair #7FACA6 and #7F84AC stays calm, while #AC907F is the loudest partner.

What is #7f9bac in CMYK for printing?

cmyk(26%, 10%, 0%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7f9bac warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7FABAC; nudged cooler, #7D95AE.

Work with #7f9bac in the Color Lab