Skip to content

#af91b2

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

RGB
175, 145, 178
HSL
295°, 18%, 63%
CMYK
2, 19, 0, 30
Luminance
0.3258

At a glance

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

Hex
#af91b2
Hue
295°
magenta / pink
Saturation
18%
soft
Lightness
63%
balanced
Brightness
70%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3258
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.52:1
Closest name
Plum
ΔE2000 10.7
Where it sits
Hue295° of 360°
Saturation18%
Lightness63%
Temperature
Warm ← → Cool52% 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#af91b2
RGBrgb(175, 145, 178)
HSLhsl(295, 18%, 63%)
CMYKcmyk(2%, 19%, 0%, 30%)
LABlab(63.8 17.2 -13.0)
LCHlch(63.8 21.6 322.9)
OKLCHoklch(0.695 0.058 323.3)
Decimal11506098
Display P3color(display-p3 0.686 0.569 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af91b2 on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#af91b2 on black: 7.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8E98B3
deuteranopia · #959CB1
tritanopia · #B1949C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af91b2 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
#F1EEF2
#E2D9E3
#CFBDD1
#af91b2
#9F7BA3
#8C6590
#755478
#5D4360
#453347
#2B202C
Base = 400Lightest = 50 · #F8F6F8Darkest = 950 · #2B202C
:root {
  --brand-50: #F8F6F8;
  --brand-100: #F1EEF2;
  --brand-200: #E2D9E3;
  --brand-300: #CFBDD1;
  --brand-400: #af91b2;
  --brand-500: #9F7BA3;
  --brand-600: #8C6590;
  --brand-700: #755478;
  --brand-800: #5D4360;
  --brand-900: #453347;
  --brand-950: #2B202C;
  --brand: #af91b2;
  --brand-ink: #000000;
}

Colors that work with #af91b2

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#F8F6F9
Tinted page background
Border#DCCFDD
Hairlines and dividers
Muted text#835F87
Captions on the surface
Accent#5F7C50
Second voice, not a rival
Dark variant#49354B
Hover, pressed, headers
Light variant#F4F0F4
Selected rows, tints
Dark surface#201721
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 #af91b2

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#94B291
Analogous left#9E91B2
Analogous right#B291A4
Split-complement 1#A4B291
Split-complement 2#91B29E
Triadic 1#B2AF91
Triadic 2#91B2AF
Tetradic#B29E91

RGB percentages

Red68.6%
Green56.9%
Blue69.8%

CMYK percentages

Cyan1.7%
Magenta18.5%
Yellow0.0%
Key (black)30.2%

Color previews

#af91b2 text on a black background

contrast 7.52:1

Card sample

#af91b2 text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af91b2

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.

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

#af91b2, answered

What color is #af91b2?

#af91b2 is a balanced soft magenta / pink, closest to Plum (ΔE2000 10.7). It sits at 295° on the hue wheel with 18% saturation and 63% lightness, which reads as neutral.

What is the RGB value of #af91b2?

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

Is #af91b2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3258 and perceived brightness is 62%, so black text on it reaches 7.52:1.

Should I use black or white text on #af91b2?

Black. It scores 7.52:1 against #af91b2, versus 2.79:1 for white — AAA at any size.

What is the complementary color of #af91b2?

#94B291 sits directly opposite on the wheel. Softer options are the split-complements #A4B291 and #91B29E, which give the same contrast with far less vibration.

What colors go well with #af91b2?

For interface work: #F8F6F9 as the surface, #DCCFDD for borders, #835F87 for secondary text, #5F7C50 as an accent and #49354B for hover and pressed states. For a palette, the analogous pair #9E91B2 and #B291A4 stays calm, while #94B291 is the loudest partner.

What is #af91b2 in CMYK for printing?

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

Is #af91b2 warm or cool?

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

Work with #af91b2 in the Color Lab