Skip to content

#af5caa

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

RGB
175, 92, 170
HSL
304°, 34%, 52%
CMYK
0, 47, 3, 31
Luminance
0.1967

At a glance

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

Hex
#af5caa
Hue
304°
magenta / pink
Saturation
34%
soft
Lightness
52%
balanced
Brightness
69%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1967
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.93:1
Closest name
Medium Orchid
ΔE2000 7.5
Where it sits
Hue304° of 360°
Saturation34%
Lightness52%
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#af5caa
RGBrgb(175, 92, 170)
HSLhsl(304, 34%, 52%)
CMYKcmyk(0%, 47%, 3%, 31%)
LABlab(51.5 44.9 -27.3)
LCHlch(51.5 52.5 328.7)
OKLCHoklch(0.600 0.147 329.5)
Decimal11492522
Display P3color(display-p3 0.686 0.361 0.667)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5caa on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#af5caa on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5774AD
deuteranopia · #6F7FA8
tritanopia · #B4637B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5caa 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
#C88EC4
#af5caa
#A4519F
#894385
#6E366A
#502A4E
#321A31
Base = 500Lightest = 50 · #F9F5F9Darkest = 950 · #321A31
:root {
  --brand-50: #F9F5F9;
  --brand-100: #F4ECF3;
  --brand-200: #E8D4E7;
  --brand-300: #DAB4D8;
  --brand-400: #C88EC4;
  --brand-500: #af5caa;
  --brand-600: #A4519F;
  --brand-700: #894385;
  --brand-800: #6E366A;
  --brand-900: #502A4E;
  --brand-950: #321A31;
  --brand: #af5caa;
  --brand-ink: #000000;
}

Colors that work with #af5caa

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#E4C8E2
Hairlines and dividers
Muted text#9A4C95
Captions on the surface
Accent#4E8D3F
Second voice, not a rival
Dark variant#562A53
Hover, pressed, headers
Light variant#F7EEF6
Selected rows, tints
Dark surface#241423
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 #af5caa

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#5CAF61
Analogous left#8B5CAF
Analogous right#AF5C81
Split-complement 1#81AF5C
Split-complement 2#5CAF8B
Triadic 1#AAAF5C
Triadic 2#5CAAAF
Tetradic#AF8B5C

RGB percentages

Red68.6%
Green36.1%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta47.4%
Yellow2.9%
Key (black)31.4%

Color previews

#af5caa text on a black background

contrast 4.93:1

Card sample

#af5caa text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5caa

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.

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

#af5caa, answered

What color is #af5caa?

#af5caa is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 7.5). It sits at 304° on the hue wheel with 34% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #af5caa?

rgb(175, 92, 170) — 175 red, 92 green and 170 blue out of 255, or 68.6% / 36.1% / 66.7% by channel.

Is #af5caa a light or a dark color?

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

Should I use black or white text on #af5caa?

Black. It scores 4.93:1 against #af5caa, versus 4.26:1 for white — AA at any size.

What is the complementary color of #af5caa?

#5CAF61 sits directly opposite on the wheel. Softer options are the split-complements #81AF5C and #5CAF8B, which give the same contrast with far less vibration.

What colors go well with #af5caa?

For interface work: #FAF5FA as the surface, #E4C8E2 for borders, #9A4C95 for secondary text, #4E8D3F as an accent and #562A53 for hover and pressed states. For a palette, the analogous pair #8B5CAF and #AF5C81 stays calm, while #5CAF61 is the loudest partner.

What is #af5caa in CMYK for printing?

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

Is #af5caa 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 #AF5C8C; nudged cooler, #975AB2.

Work with #af5caa in the Color Lab