Skip to content

#af8ba1

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

RGB
175, 139, 161
HSL
323°, 18%, 62%
CMYK
0, 21, 8, 31
Luminance
0.3015

At a glance

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

Hex
#af8ba1
Hue
323°
magenta / pink
Saturation
18%
soft
Lightness
62%
balanced
Brightness
69%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3015
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.03:1
Closest name
Rosy Brown
ΔE2000 9
Where it sits
Hue323° of 360°
Saturation18%
Lightness62%
Temperature
Warm ← → Cool43% cool

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

Every format

HEX#af8ba1
RGBrgb(175, 139, 161)
HSLhsl(323, 18%, 62%)
CMYKcmyk(0%, 21%, 8%, 31%)
LABlab(61.8 17.4 -6.4)
LCHlch(61.8 18.5 339.7)
OKLCHoklch(0.677 0.053 341.4)
Decimal11504545
Display P3color(display-p3 0.686 0.545 0.631)

Copy-ready code

/* CSS */
color: #af8ba1;
background-color: #af8ba1;
/* Tailwind (arbitrary) */
class="text-[#af8ba1] bg-[#af8ba1]"
/* SCSS */
$brand: #af8ba1;
/* SwiftUI */
Color(red: 0.686, green: 0.545, blue: 0.631)
/* Android */
Color.parseColor("#af8ba1")
/* Flutter */
Color(0xFFAF8BA1)
/* Python / OpenCV (BGR) */
(161, 139, 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 #af8ba1 · 7.03:1
Use #000000AAA at every size.
Aa
White text · 2.99:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.03:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #af8ba1 as text scores 2.99:1 on white and 7.03:1 on black.

Accessibility — WCAG contrast

Aa
#af8ba1 on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#af8ba1 on black: 7.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8C92A2
deuteranopia · #9597A0
tritanopia · #B48B92

Color scale — 50 to 950

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

#F8F6F8
#F2EEF0
#E3D8DF
#D1BDC9
#af8ba1
#A37A93
#91647F
#79536A
#614355
#483340
#2D2028
Base = 400Lightest = 50 · #F8F6F8Darkest = 950 · #2D2028
:root {
  --brand-50: #F8F6F8;
  --brand-100: #F2EEF0;
  --brand-200: #E3D8DF;
  --brand-300: #D1BDC9;
  --brand-400: #af8ba1;
  --brand-500: #A37A93;
  --brand-600: #91647F;
  --brand-700: #79536A;
  --brand-800: #614355;
  --brand-900: #483340;
  --brand-950: #2D2028;
  --brand: #af8ba1;
  --brand-ink: #000000;
}

Colors that work with #af8ba1

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#F9F6F8
Tinted page background
Border#DECFD8
Hairlines and dividers
Muted text#885E77
Captions on the surface
Accent#4F7D55
Second voice, not a rival
Dark variant#4B3442
Hover, pressed, headers
Light variant#F5F0F3
Selected rows, tints
Dark surface#21171D
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 #af8ba1

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#8BAF99
Analogous left#AB8BAF
Analogous right#AF8B8F
Split-complement 1#8FAF8B
Split-complement 2#8BAFAB
Triadic 1#A1AF8B
Triadic 2#8BA1AF
Tetradic#AFAB8B

RGB percentages

Red68.6%
Green54.5%
Blue63.1%

CMYK percentages

Cyan0.0%
Magenta20.6%
Yellow8.0%
Key (black)31.4%

Color previews

#af8ba1 text on a black background

contrast 7.03:1

Card sample

#af8ba1 text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8ba1

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.

#af8ba1 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.

#af8ba1, answered

What color is #af8ba1?

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

What is the RGB value of #af8ba1?

rgb(175, 139, 161) — 175 red, 139 green and 161 blue out of 255, or 68.6% / 54.5% / 63.1% by channel.

Is #af8ba1 a light or a dark color?

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

Should I use black or white text on #af8ba1?

Black. It scores 7.03:1 against #af8ba1, versus 2.99:1 for white — AAA at any size.

What is the complementary color of #af8ba1?

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

What colors go well with #af8ba1?

For interface work: #F9F6F8 as the surface, #DECFD8 for borders, #885E77 for secondary text, #4F7D55 as an accent and #4B3442 for hover and pressed states. For a palette, the analogous pair #AB8BAF and #AF8B8F stays calm, while #8BAF99 is the loudest partner.

What is #af8ba1 in CMYK for printing?

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

Is #af8ba1 warm or cool?

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

Work with #af8ba1 in the Color Lab