Skip to content

#af5fbf

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

RGB
175, 95, 191
HSL
290°, 43%, 56%
CMYK
8, 50, 0, 25
Luminance
0.2106

At a glance

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

Hex
#af5fbf
Hue
290°
magenta / pink
Saturation
43%
soft
Lightness
56%
balanced
Brightness
75%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2106
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
5.21:1
Closest name
Medium Orchid
ΔE2000 3.9
Where it sits
Hue290° of 360°
Saturation43%
Lightness56%
Temperature
Warm ← → Cool56% 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#af5fbf
RGBrgb(175, 95, 191)
HSLhsl(290, 43%, 56%)
CMYKcmyk(8%, 50%, 0%, 25%)
LABlab(53.0 47.3 -37.0)
LCHlch(53.0 60.1 322.0)
OKLCHoklch(0.615 0.162 320.7)
Decimal11493311
Display P3color(display-p3 0.686 0.373 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5fbf on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#af5fbf on black: 5.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4F79C2
deuteranopia · #6882BC
tritanopia · #B06C86

Color scale — 50 to 950

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

#F9F5FA
#F3EBF5
#E6D1EA
#D7AFDF
#C387CF
#af5fbf
#9D46AF
#833A92
#692F75
#4D2555
#301735
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #301735
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F3EBF5;
  --brand-200: #E6D1EA;
  --brand-300: #D7AFDF;
  --brand-400: #C387CF;
  --brand-500: #af5fbf;
  --brand-600: #9D46AF;
  --brand-700: #833A92;
  --brand-800: #692F75;
  --brand-900: #4D2555;
  --brand-950: #301735;
  --brand: #af5fbf;
  --brand-ink: #000000;
}

Colors that work with #af5fbf

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#F9F4FA
Tinted page background
Border#E2C5E8
Hairlines and dividers
Muted text#8E4B9B
Captions on the surface
Accent#5D9636
Second voice, not a rival
Dark variant#52245B
Hover, pressed, headers
Light variant#F6EDF8
Selected rows, tints
Dark surface#221424
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 #af5fbf

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#6FBF5F
Analogous left#7F5FBF
Analogous right#BF5F9F
Split-complement 1#9FBF5F
Split-complement 2#5FBF7F
Triadic 1#BFAF5F
Triadic 2#5FBFAF
Tetradic#BF7F5F

RGB percentages

Red68.6%
Green37.3%
Blue74.9%

CMYK percentages

Cyan8.4%
Magenta50.3%
Yellow0.0%
Key (black)25.1%

Color previews

#af5fbf text on a black background

contrast 5.21:1

Card sample

#af5fbf text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5fbf

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.

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

#af5fbf, answered

What color is #af5fbf?

#af5fbf is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 3.9). It sits at 290° on the hue wheel with 43% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #af5fbf?

rgb(175, 95, 191) — 175 red, 95 green and 191 blue out of 255, or 68.6% / 37.3% / 74.9% by channel.

Is #af5fbf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2106 and perceived brightness is 54%, so black text on it reaches 5.21:1.

Should I use black or white text on #af5fbf?

Black. It scores 5.21:1 against #af5fbf, versus 4.03:1 for white — AA at any size.

What is the complementary color of #af5fbf?

#6FBF5F sits directly opposite on the wheel. Softer options are the split-complements #9FBF5F and #5FBF7F, which give the same contrast with far less vibration.

What colors go well with #af5fbf?

For interface work: #F9F4FA as the surface, #E2C5E8 for borders, #8E4B9B for secondary text, #5D9636 as an accent and #52245B for hover and pressed states. For a palette, the analogous pair #7F5FBF and #BF5F9F stays calm, while #6FBF5F is the loudest partner.

What is #af5fbf in CMYK for printing?

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

Is #af5fbf warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BF5FAC; nudged cooler, #8C5DC1.

Work with #af5fbf in the Color Lab