Skip to content

#af8d97

a balanced, soft magenta / pink · warm · closest name: Rosy Brown

RGB
175, 141, 151
HSL
342°, 18%, 62%
CMYK
0, 19, 14, 31
Luminance
0.3040

At a glance

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

Hex
#af8d97
Hue
342°
magenta / pink
Saturation
18%
soft
Lightness
62%
balanced
Brightness
69%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3040
WCAG relative
Temperature
Warm
38/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.08:1
Closest name
Rosy Brown
ΔE2000 5.3
Where it sits
Hue342° of 360°
Saturation18%
Lightness62%
Temperature
Warm ← → Cool38% cool

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

Every format

HEX#af8d97
RGBrgb(175, 141, 151)
HSLhsl(342, 18%, 62%)
CMYKcmyk(0%, 19%, 14%, 31%)
LABlab(62.0 14.5 -0.4)
LCHlch(62.0 14.5 358.3)
OKLCHoklch(0.678 0.043 358.8)
Decimal11505047
Display P3color(display-p3 0.686 0.553 0.592)

Copy-ready code

/* CSS */
color: #af8d97;
background-color: #af8d97;
/* Tailwind (arbitrary) */
class="text-[#af8d97] bg-[#af8d97]"
/* SCSS */
$brand: #af8d97;
/* SwiftUI */
Color(red: 0.686, green: 0.553, blue: 0.592)
/* Android */
Color.parseColor("#af8d97")
/* Flutter */
Color(0xFFAF8D97)
/* Python / OpenCV (BGR) */
(151, 141, 175)

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

Accessibility — WCAG contrast

Aa
#af8d97 on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#af8d97 on black: 7.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #919297
deuteranopia · #989896
tritanopia · #B58B90

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af8d97 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.

#F8F6F7
#F2EEEF
#E3D9DC
#D1BDC3
#af8d97
#A27B87
#906572
#78545F
#60434C
#473339
#2C2024
Base = 400Lightest = 50 · #F8F6F7Darkest = 950 · #2C2024
:root {
  --brand-50: #F8F6F7;
  --brand-100: #F2EEEF;
  --brand-200: #E3D9DC;
  --brand-300: #D1BDC3;
  --brand-400: #af8d97;
  --brand-500: #A27B87;
  --brand-600: #906572;
  --brand-700: #78545F;
  --brand-800: #60434C;
  --brand-900: #473339;
  --brand-950: #2C2024;
  --brand: #af8d97;
  --brand-ink: #000000;
}

Colors that work with #af8d97

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#F9F6F7
Tinted page background
Border#DDCFD3
Hairlines and dividers
Muted text#875F6A
Captions on the surface
Accent#507C64
Second voice, not a rival
Dark variant#4B353B
Hover, pressed, headers
Light variant#F4F0F1
Selected rows, tints
Dark surface#21171A
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 #af8d97

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#8DAFA5
Analogous left#AF8DA8
Analogous right#AF948D
Split-complement 1#8DAF94
Split-complement 2#8DA8AF
Triadic 1#97AF8D
Triadic 2#8D97AF
Tetradic#A8AF8D

RGB percentages

Red68.6%
Green55.3%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta19.4%
Yellow13.7%
Key (black)31.4%

Color previews

#af8d97 text on a black background

contrast 7.08:1

Card sample

#af8d97 text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8d97

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.

#af8d97 in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#af8d97, answered

What color is #af8d97?

#af8d97 is a balanced soft magenta / pink, closest to Rosy Brown (ΔE2000 5.3). It sits at 342° on the hue wheel with 18% saturation and 62% lightness, which reads as warm.

What is the RGB value of #af8d97?

rgb(175, 141, 151) — 175 red, 141 green and 151 blue out of 255, or 68.6% / 55.3% / 59.2% by channel.

Is #af8d97 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3040 and perceived brightness is 60%, so black text on it reaches 7.08:1.

Should I use black or white text on #af8d97?

Black. It scores 7.08:1 against #af8d97, versus 2.97:1 for white — AAA at any size.

What is the complementary color of #af8d97?

#8DAFA5 sits directly opposite on the wheel. Softer options are the split-complements #8DAF94 and #8DA8AF, which give the same contrast with far less vibration.

What colors go well with #af8d97?

For interface work: #F9F6F7 as the surface, #DDCFD3 for borders, #875F6A for secondary text, #507C64 as an accent and #4B353B for hover and pressed states. For a palette, the analogous pair #AF8DA8 and #AF948D stays calm, while #8DAFA5 is the loudest partner.

What is #af8d97 in CMYK for printing?

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

Is #af8d97 warm or cool?

Warm — it scores 38 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF908D; nudged cooler, #B18BA4.

Work with #af8d97 in the Color Lab