Skip to content

#af7b9b

a balanced, soft magenta / pink · warm · closest name: Pale Violet Red

RGB
175, 123, 155
HSL
323°, 25%, 58%
CMYK
0, 30, 11, 31
Luminance
0.2565

At a glance

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

Hex
#af7b9b
Hue
323°
magenta / pink
Saturation
25%
soft
Lightness
58%
balanced
Brightness
69%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2565
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
6.13:1
Closest name
Pale Violet Red
ΔE2000 10.2
Where it sits
Hue323° of 360°
Saturation25%
Lightness58%
Temperature
Warm ← → Cool41% 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#af7b9b
RGBrgb(175, 123, 155)
HSLhsl(323, 25%, 58%)
CMYKcmyk(0%, 30%, 11%, 31%)
LABlab(57.7 25.3 -9.1)
LCHlch(57.7 26.9 340.3)
OKLCHoklch(0.645 0.078 342.0)
Decimal11500443
Display P3color(display-p3 0.686 0.482 0.608)

Copy-ready code

/* CSS */
color: #af7b9b;
background-color: #af7b9b;
/* Tailwind (arbitrary) */
class="text-[#af7b9b] bg-[#af7b9b]"
/* SCSS */
$brand: #af7b9b;
/* SwiftUI */
Color(red: 0.686, green: 0.482, blue: 0.608)
/* Android */
Color.parseColor("#af7b9b")
/* Flutter */
Color(0xFFAF7B9B)
/* Python / OpenCV (BGR) */
(155, 123, 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 #af7b9b · 6.13:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.43:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.13:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af7b9b as text scores 3.43:1 on white and 6.13:1 on black.

Accessibility — WCAG contrast

Aa
#af7b9b on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#af7b9b on black: 6.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7D869C
deuteranopia · #8A8E9A
tritanopia · #B57B86

Color scale — 50 to 950

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

#F9F6F8
#F3EDF0
#E5D7DF
#D5B9CA
#BF96B0
#af7b9b
#985C81
#7F4D6C
#663E56
#4B2F40
#2F1E28
Base = 500Lightest = 50 · #F9F6F8Darkest = 950 · #2F1E28
:root {
  --brand-50: #F9F6F8;
  --brand-100: #F3EDF0;
  --brand-200: #E5D7DF;
  --brand-300: #D5B9CA;
  --brand-400: #BF96B0;
  --brand-500: #af7b9b;
  --brand-600: #985C81;
  --brand-700: #7F4D6C;
  --brand-800: #663E56;
  --brand-900: #4B2F40;
  --brand-950: #2F1E28;
  --brand: #af7b9b;
  --brand-ink: #000000;
}

Colors that work with #af7b9b

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#F9F5F8
Tinted page background
Border#E0CCD8
Hairlines and dividers
Muted text#8F5779
Captions on the surface
Accent#498351
Second voice, not a rival
Dark variant#4F3043
Hover, pressed, headers
Light variant#F5EFF3
Selected rows, tints
Dark surface#23151E
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 #af7b9b

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#7BAF8F
Analogous left#A97BAF
Analogous right#AF7B81
Split-complement 1#81AF7B
Split-complement 2#7BAFA9
Triadic 1#9BAF7B
Triadic 2#7B9BAF
Tetradic#AFA97B

RGB percentages

Red68.6%
Green48.2%
Blue60.8%

CMYK percentages

Cyan0.0%
Magenta29.7%
Yellow11.4%
Key (black)31.4%

Color previews

#af7b9b text on a black background

contrast 6.13:1

Card sample

#af7b9b text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7b9b

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.

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

#af7b9b, answered

What color is #af7b9b?

#af7b9b is a balanced soft magenta / pink, closest to Pale Violet Red (ΔE2000 10.2). It sits at 323° on the hue wheel with 25% saturation and 58% lightness, which reads as warm.

What is the RGB value of #af7b9b?

rgb(175, 123, 155) — 175 red, 123 green and 155 blue out of 255, or 68.6% / 48.2% / 60.8% by channel.

Is #af7b9b a light or a dark color?

It is a mid-tone. Relative luminance is 0.2565 and perceived brightness is 57%, so black text on it reaches 6.13:1.

Should I use black or white text on #af7b9b?

Black. It scores 6.13:1 against #af7b9b, versus 3.43:1 for white — AA at any size.

What is the complementary color of #af7b9b?

#7BAF8F sits directly opposite on the wheel. Softer options are the split-complements #81AF7B and #7BAFA9, which give the same contrast with far less vibration.

What colors go well with #af7b9b?

For interface work: #F9F5F8 as the surface, #E0CCD8 for borders, #8F5779 for secondary text, #498351 as an accent and #4F3043 for hover and pressed states. For a palette, the analogous pair #A97BAF and #AF7B81 stays calm, while #7BAF8F is the loudest partner.

What is #af7b9b in CMYK for printing?

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

Is #af7b9b warm or cool?

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

Work with #af7b9b in the Color Lab