Skip to content

#b7afb2

a light, muted gray · neutral · closest name: Dark Gray

RGB
183, 175, 178
HSL
338°, 5%, 70%
CMYK
0, 4, 3, 28
Luminance
0.4394

At a glance

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

Hex
#b7afb2
Hue
338°
gray
Saturation
5%
muted
Lightness
70%
light
Brightness
72%
HSV value
Perceived
70%
weighted brightness
Luminance
0.4394
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Gray
Tone
Muted
Best ink
Black
9.79:1
Closest name
Dark Gray
ΔE2000 5.1
Where it sits
Hue338° of 360°
Saturation5%
Lightness70%
Temperature
Warm ← → Cool47% cool

Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.

Every format

HEX#b7afb2
RGBrgb(183, 175, 178)
HSLhsl(338, 5%, 70%)
CMYKcmyk(0%, 4%, 3%, 28%)
LABlab(72.2 3.4 -0.5)
LCHlch(72.2 3.4 351.4)
OKLCHoklch(0.761 0.010 352.5)
Decimal12038066
Display P3color(display-p3 0.718 0.686 0.698)

Copy-ready code

/* CSS */
color: #b7afb2;
background-color: #b7afb2;
/* Tailwind (arbitrary) */
class="text-[#b7afb2] bg-[#b7afb2]"
/* SCSS */
$brand: #b7afb2;
/* SwiftUI */
Color(red: 0.718, green: 0.686, blue: 0.698)
/* Android */
Color.parseColor("#b7afb2")
/* Flutter */
Color(0xFFB7AFB2)
/* Python / OpenCV (BGR) */
(178, 175, 183)

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 #b7afb2 · 9.79:1
Use #000000AAA at every size.
Aa
White text · 2.15:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.79:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b7afb2 as text scores 2.15:1 on white and 9.79:1 on black.

Accessibility — WCAG contrast

Aa
#b7afb2 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#b7afb2 on black: 9.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B0B0B2
deuteranopia · #B1B1B2
tritanopia · #B8AFB0

Color scale — 50 to 950

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

#F8F7F7
#F0EFF0
#DFDCDD
#CAC4C6
#b7afb2
#95898D
#817479
#6B6165
#564D51
#403A3C
#282426
Base = 400Lightest = 50 · #F8F7F7Darkest = 950 · #282426
:root {
  --brand-50: #F8F7F7;
  --brand-100: #F0EFF0;
  --brand-200: #DFDCDD;
  --brand-300: #CAC4C6;
  --brand-400: #b7afb2;
  --brand-500: #95898D;
  --brand-600: #817479;
  --brand-700: #6B6165;
  --brand-800: #564D51;
  --brand-900: #403A3C;
  --brand-950: #282426;
  --brand: #b7afb2;
  --brand-ink: #000000;
}

Colors that work with #b7afb2

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#F8F7F7
Tinted page background
Border#D8D4D6
Hairlines and dividers
Muted text#796D71
Captions on the surface
Accent#5D6F63
Second voice, not a rival
Dark variant#433C3F
Hover, pressed, headers
Light variant#F3F2F2
Selected rows, tints
Dark surface#1E1B1C
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 #b7afb2

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

Works well for
  • Text and icons on dark surfaces
  • Borders, dividers and quiet backgrounds
  • Long-form reading surfaces
  • Card and section backgrounds
  • Neutral UI chrome and typography
Use with care
  • Text of any size on white — fails WCAG AA
  • White text placed on it
  • 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#AFB7B4
Analogous left#B7AFB6
Analogous right#B7B0AF
Split-complement 1#AFB7B0
Split-complement 2#AFB6B7
Triadic 1#B2B7AF
Triadic 2#AFB2B7
Tetradic#B6B7AF

RGB percentages

Red71.8%
Green68.6%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow2.7%
Key (black)28.2%

Color previews

#b7afb2 text on a black background

contrast 9.79:1

Card sample

#b7afb2 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(183, 175, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(183, 175, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b7afb2;
background: linear-gradient(135deg, #b7afb2, #B7B1AF);

Monochromatic scale

Palettes built from #b7afb2

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.

#b7afb2 in the real world

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

Industries
EditorialArchitectureEnterpriseLuxury goods
Common UI roles
BackgroundsBordersBody textDividers
Print note

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

#b7afb2, answered

What color is #b7afb2?

#b7afb2 is a light muted gray, closest to Dark Gray (ΔE2000 5.1). It sits at 338° on the hue wheel with 5% saturation and 70% lightness, which reads as neutral.

What is the RGB value of #b7afb2?

rgb(183, 175, 178) — 183 red, 175 green and 178 blue out of 255, or 71.8% / 68.6% / 69.8% by channel.

Is #b7afb2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4394 and perceived brightness is 70%, so black text on it reaches 9.79:1.

Should I use black or white text on #b7afb2?

Black. It scores 9.79:1 against #b7afb2, versus 2.15:1 for white — AAA at any size.

What is the complementary color of #b7afb2?

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

What colors go well with #b7afb2?

For interface work: #F8F7F7 as the surface, #D8D4D6 for borders, #796D71 for secondary text, #5D6F63 as an accent and #433C3F for hover and pressed states. For a palette, the analogous pair #B7AFB6 and #B7B0AF stays calm, while #AFB7B4 is the loudest partner.

What is #b7afb2 in CMYK for printing?

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

Is #b7afb2 warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C2B7AE; nudged cooler, #A3AEB9.

Work with #b7afb2 in the Color Lab