Skip to content

#ab7baf

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

RGB
171, 123, 175
HSL
295°, 25%, 58%
CMYK
2, 30, 0, 31
Luminance
0.2592

At a glance

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

Hex
#ab7baf
Hue
295°
magenta / pink
Saturation
25%
soft
Lightness
58%
balanced
Brightness
69%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2592
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
6.18:1
Closest name
Orchid
ΔE2000 10.6
Where it sits
Hue295° of 360°
Saturation25%
Lightness58%
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#ab7baf
RGBrgb(171, 123, 175)
HSLhsl(295, 25%, 58%)
CMYKcmyk(2%, 30%, 0%, 31%)
LABlab(58.0 27.6 -20.2)
LCHlch(58.0 34.3 323.8)
OKLCHoklch(0.648 0.093 324.0)
Decimal11238319
Display P3color(display-p3 0.671 0.482 0.686)

Copy-ready code

/* CSS */
color: #ab7baf;
background-color: #ab7baf;
/* Tailwind (arbitrary) */
class="text-[#ab7baf] bg-[#ab7baf]"
/* SCSS */
$brand: #ab7baf;
/* SwiftUI */
Color(red: 0.671, green: 0.482, blue: 0.686)
/* Android */
Color.parseColor("#ab7baf")
/* Flutter */
Color(0xFFAB7BAF)
/* Python / OpenCV (BGR) */
(175, 123, 171)

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

Accessibility — WCAG contrast

Aa
#ab7baf on white: 3.40:1
AA ✗ fail · AA-large · AAA
Aa
#ab7baf on black: 6.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7688B1
deuteranopia · #828DAD
tritanopia · #AD808E

Color scale — 50 to 950

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

#F9F6F9
#F2EDF3
#E4D7E5
#D3B9D5
#BC96BF
#ab7baf
#945C98
#7B4D7F
#633E66
#492F4B
#2E1E2F
Base = 500Lightest = 50 · #F9F6F9Darkest = 950 · #2E1E2F
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F2EDF3;
  --brand-200: #E4D7E5;
  --brand-300: #D3B9D5;
  --brand-400: #BC96BF;
  --brand-500: #ab7baf;
  --brand-600: #945C98;
  --brand-700: #7B4D7F;
  --brand-800: #633E66;
  --brand-900: #492F4B;
  --brand-950: #2E1E2F;
  --brand: #ab7baf;
  --brand-ink: #000000;
}

Colors that work with #ab7baf

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#F9F5F9
Tinted page background
Border#DFCCE0
Hairlines and dividers
Muted text#8B578F
Captions on the surface
Accent#5B8349
Second voice, not a rival
Dark variant#4D304F
Hover, pressed, headers
Light variant#F5EFF5
Selected rows, tints
Dark surface#221523
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 #ab7baf

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#7FAF7B
Analogous left#917BAF
Analogous right#AF7B99
Split-complement 1#99AF7B
Split-complement 2#7BAF91
Triadic 1#AFAB7B
Triadic 2#7BAFAB
Tetradic#AF917B

RGB percentages

Red67.1%
Green48.2%
Blue68.6%

CMYK percentages

Cyan2.3%
Magenta29.7%
Yellow0.0%
Key (black)31.4%

Color previews

#ab7baf text on a black background

contrast 6.18:1

Card sample

#ab7baf text on a white background

contrast 3.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab7baf

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.

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

#ab7baf, answered

What color is #ab7baf?

#ab7baf is a balanced soft magenta / pink, closest to Orchid (ΔE2000 10.6). It sits at 295° on the hue wheel with 25% saturation and 58% lightness, which reads as neutral.

What is the RGB value of #ab7baf?

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

Is #ab7baf a light or a dark color?

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

Should I use black or white text on #ab7baf?

Black. It scores 6.18:1 against #ab7baf, versus 3.40:1 for white — AA at any size.

What is the complementary color of #ab7baf?

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

What colors go well with #ab7baf?

For interface work: #F9F5F9 as the surface, #DFCCE0 for borders, #8B578F for secondary text, #5B8349 as an accent and #4D304F for hover and pressed states. For a palette, the analogous pair #917BAF and #AF7B99 stays calm, while #7FAF7B is the loudest partner.

What is #ab7baf in CMYK for printing?

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

Is #ab7baf 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 #AF7BA0; nudged cooler, #9879B1.

Work with #ab7baf in the Color Lab