Skip to content

#af8fab

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

RGB
175, 143, 171
HSL
308°, 17%, 62%
CMYK
0, 18, 2, 31
Luminance
0.3170

At a glance

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

Hex
#af8fab
Hue
308°
magenta / pink
Saturation
17%
soft
Lightness
62%
balanced
Brightness
69%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3170
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.34:1
Closest name
Rosy Brown
ΔE2000 11.2
Where it sits
Hue308° of 360°
Saturation17%
Lightness62%
Temperature
Warm ← → Cool48% 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#af8fab
RGBrgb(175, 143, 171)
HSLhsl(308, 17%, 62%)
CMYKcmyk(0%, 18%, 2%, 31%)
LABlab(63.1 16.9 -10.1)
LCHlch(63.1 19.8 329.1)
OKLCHoklch(0.688 0.055 330.3)
Decimal11505579
Display P3color(display-p3 0.686 0.561 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8fab on white: 2.86:1
AA ✗ fail · AA-large · AAA
Aa
#af8fab on black: 7.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8E96AC
deuteranopia · #959AAA
tritanopia · #B29198

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af8fab 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
#F2EEF1
#E3D9E2
#D0BECE
#af8fab
#A27C9D
#8F668A
#775573
#5F445C
#473444
#2C202B
Base = 400Lightest = 50 · #F8F6F8Darkest = 950 · #2C202B
:root {
  --brand-50: #F8F6F8;
  --brand-100: #F2EEF1;
  --brand-200: #E3D9E2;
  --brand-300: #D0BECE;
  --brand-400: #af8fab;
  --brand-500: #A27C9D;
  --brand-600: #8F668A;
  --brand-700: #775573;
  --brand-800: #5F445C;
  --brand-900: #473444;
  --brand-950: #2C202B;
  --brand: #af8fab;
  --brand-ink: #000000;
}

Colors that work with #af8fab

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#DDCFDB
Hairlines and dividers
Muted text#866081
Captions on the surface
Accent#567B51
Second voice, not a rival
Dark variant#4A3548
Hover, pressed, headers
Light variant#F4F0F4
Selected rows, tints
Dark surface#211720
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 #af8fab

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#8FAF93
Analogous left#A38FAF
Analogous right#AF8F9B
Split-complement 1#9BAF8F
Split-complement 2#8FAFA3
Triadic 1#ABAF8F
Triadic 2#8FABAF
Tetradic#AFA38F

RGB percentages

Red68.6%
Green56.1%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta18.3%
Yellow2.3%
Key (black)31.4%

Color previews

#af8fab text on a black background

contrast 7.34:1

Card sample

#af8fab text on a white background

contrast 2.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8fab

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.

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

#af8fab, answered

What color is #af8fab?

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

What is the RGB value of #af8fab?

rgb(175, 143, 171) — 175 red, 143 green and 171 blue out of 255, or 68.6% / 56.1% / 67.1% by channel.

Is #af8fab a light or a dark color?

It is a mid-tone. Relative luminance is 0.3170 and perceived brightness is 61%, so black text on it reaches 7.34:1.

Should I use black or white text on #af8fab?

Black. It scores 7.34:1 against #af8fab, versus 2.86:1 for white — AAA at any size.

What is the complementary color of #af8fab?

#8FAF93 sits directly opposite on the wheel. Softer options are the split-complements #9BAF8F and #8FAFA3, which give the same contrast with far less vibration.

What colors go well with #af8fab?

For interface work: #F9F6F8 as the surface, #DDCFDB for borders, #866081 for secondary text, #567B51 as an accent and #4A3548 for hover and pressed states. For a palette, the analogous pair #A38FAF and #AF8F9B stays calm, while #8FAF93 is the loudest partner.

What is #af8fab in CMYK for printing?

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

Is #af8fab warm or cool?

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

Work with #af8fab in the Color Lab