Skip to content

#af5fab

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

RGB
175, 95, 171
HSL
303°, 33%, 53%
CMYK
0, 46, 2, 31
Luminance
0.2024

At a glance

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

Hex
#af5fab
Hue
303°
magenta / pink
Saturation
33%
soft
Lightness
53%
balanced
Brightness
69%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2024
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
5.05:1
Closest name
Medium Orchid
ΔE2000 7.6
Where it sits
Hue303° of 360°
Saturation33%
Lightness53%
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#af5fab
RGBrgb(175, 95, 171)
HSLhsl(303, 33%, 53%)
CMYKcmyk(0%, 46%, 2%, 31%)
LABlab(52.1 43.5 -26.9)
LCHlch(52.1 51.1 328.3)
OKLCHoklch(0.605 0.142 329.0)
Decimal11493291
Display P3color(display-p3 0.686 0.373 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5fab on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#af5fab on black: 5.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5A75AE
deuteranopia · #7080A9
tritanopia · #B4667D

Color scale — 50 to 950

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

#F9F5F9
#F4ECF3
#E8D4E7
#DAB4D8
#C78FC4
#af5fab
#A3529F
#884485
#6D366A
#502A4E
#321B31
Base = 500Lightest = 50 · #F9F5F9Darkest = 950 · #321B31
:root {
  --brand-50: #F9F5F9;
  --brand-100: #F4ECF3;
  --brand-200: #E8D4E7;
  --brand-300: #DAB4D8;
  --brand-400: #C78FC4;
  --brand-500: #af5fab;
  --brand-600: #A3529F;
  --brand-700: #884485;
  --brand-800: #6D366A;
  --brand-900: #502A4E;
  --brand-950: #321B31;
  --brand: #af5fab;
  --brand-ink: #000000;
}

Colors that work with #af5fab

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#FAF5FA
Tinted page background
Border#E4C9E2
Hairlines and dividers
Muted text#994D95
Captions on the surface
Accent#4F8C40
Second voice, not a rival
Dark variant#552B53
Hover, pressed, headers
Light variant#F6EEF6
Selected rows, tints
Dark surface#241424
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 #af5fab

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#5FAF63
Analogous left#8B5FAF
Analogous right#AF5F83
Split-complement 1#83AF5F
Split-complement 2#5FAF8B
Triadic 1#ABAF5F
Triadic 2#5FABAF
Tetradic#AF8B5F

RGB percentages

Red68.6%
Green37.3%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta45.7%
Yellow2.3%
Key (black)31.4%

Color previews

#af5fab text on a black background

contrast 5.05:1

Card sample

#af5fab text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5fab

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.

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

#af5fab, answered

What color is #af5fab?

#af5fab is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 7.6). It sits at 303° on the hue wheel with 33% saturation and 53% lightness, which reads as neutral.

What is the RGB value of #af5fab?

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

Is #af5fab a light or a dark color?

It is a mid-tone. Relative luminance is 0.2024 and perceived brightness is 52%, so black text on it reaches 5.05:1.

Should I use black or white text on #af5fab?

Black. It scores 5.05:1 against #af5fab, versus 4.16:1 for white — AA at any size.

What is the complementary color of #af5fab?

#5FAF63 sits directly opposite on the wheel. Softer options are the split-complements #83AF5F and #5FAF8B, which give the same contrast with far less vibration.

What colors go well with #af5fab?

For interface work: #FAF5FA as the surface, #E4C9E2 for borders, #994D95 for secondary text, #4F8C40 as an accent and #552B53 for hover and pressed states. For a palette, the analogous pair #8B5FAF and #AF5F83 stays calm, while #5FAF63 is the loudest partner.

What is #af5fab in CMYK for printing?

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

Is #af5fab 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 #AF5F8E; nudged cooler, #965CB1.

Work with #af5fab in the Color Lab