Skip to content

#af54ad

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

RGB
175, 84, 173
HSL
301°, 36%, 51%
CMYK
0, 52, 1, 31
Luminance
0.1847

At a glance

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

Hex
#af54ad
Hue
301°
magenta / pink
Saturation
36%
soft
Lightness
51%
balanced
Brightness
69%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1847
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.69:1
Closest name
Medium Orchid
ΔE2000 6.6
Where it sits
Hue301° of 360°
Saturation36%
Lightness51%
Temperature
Warm ← → Cool49% 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#af54ad
RGBrgb(175, 84, 173)
HSLhsl(301, 36%, 51%)
CMYKcmyk(0%, 52%, 1%, 31%)
LABlab(50.1 49.5 -31.2)
LCHlch(50.1 58.5 327.7)
OKLCHoklch(0.590 0.163 328.2)
Decimal11490477
Display P3color(display-p3 0.686 0.329 0.678)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af54ad on white: 4.47:1
AA ✗ fail · AA-large · AAA
Aa
#af54ad on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4C6FB0
deuteranopia · #687BAA
tritanopia · #B45D79

Color scale — 50 to 950

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

#FAF5F9
#F4EBF4
#E8D3E8
#DBB3DA
#C98CC8
#B866B6
#af54ad
#8B4189
#6F346E
#522951
#331932
Base = 600Lightest = 50 · #FAF5F9Darkest = 950 · #331932
:root {
  --brand-50: #FAF5F9;
  --brand-100: #F4EBF4;
  --brand-200: #E8D3E8;
  --brand-300: #DBB3DA;
  --brand-400: #C98CC8;
  --brand-500: #B866B6;
  --brand-600: #af54ad;
  --brand-700: #8B4189;
  --brand-800: #6F346E;
  --brand-900: #522951;
  --brand-950: #331932;
  --brand: #af54ad;
  --brand-ink: #000000;
}

Colors that work with #af54ad

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#E5C7E4
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#508F3D
Second voice, not a rival
Dark variant#572956
Hover, pressed, headers
Light variant#F7EEF7
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 #af54ad

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#54AF56
Analogous left#8454AF
Analogous right#AF5480
Split-complement 1#80AF54
Split-complement 2#54AF84
Triadic 1#ADAF54
Triadic 2#54ADAF
Tetradic#AF8454

RGB percentages

Red68.6%
Green32.9%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta52.0%
Yellow1.1%
Key (black)31.4%

Color previews

#af54ad text on a black background

contrast 4.69:1

Card sample

#af54ad text on a white background

contrast 4.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af54ad

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.

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

#af54ad, answered

What color is #af54ad?

#af54ad is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 6.6). It sits at 301° on the hue wheel with 36% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #af54ad?

rgb(175, 84, 173) — 175 red, 84 green and 173 blue out of 255, or 68.6% / 32.9% / 67.8% by channel.

Is #af54ad a light or a dark color?

It is a mid-tone. Relative luminance is 0.1847 and perceived brightness is 51%, so black text on it reaches 4.69:1.

Should I use black or white text on #af54ad?

Black. It scores 4.69:1 against #af54ad, versus 4.47:1 for white — AA at any size.

What is the complementary color of #af54ad?

#54AF56 sits directly opposite on the wheel. Softer options are the split-complements #80AF54 and #54AF84, which give the same contrast with far less vibration.

What colors go well with #af54ad?

For interface work: #FAF5FA as the surface, #E5C7E4 for borders, #9B4B99 for secondary text, #508F3D as an accent and #572956 for hover and pressed states. For a palette, the analogous pair #8454AF and #AF5480 stays calm, while #54AF56 is the loudest partner.

What is #af54ad in CMYK for printing?

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

Is #af54ad warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF548C; nudged cooler, #9051B2.

Work with #af54ad in the Color Lab