Skip to content

#af54af

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

RGB
175, 84, 175
HSL
300°, 36%, 51%
CMYK
0, 52, 0, 31
Luminance
0.1855

At a glance

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

Hex
#af54af
Hue
300°
magenta / pink
Saturation
36%
soft
Lightness
51%
balanced
Brightness
69%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1855
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.71:1
Closest name
Medium Orchid
ΔE2000 6.3
Where it sits
Hue300° of 360°
Saturation36%
Lightness51%
Temperature
Warm ← → Cool50% 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#af54af
RGBrgb(175, 84, 175)
HSLhsl(300, 36%, 51%)
CMYKcmyk(0%, 52%, 0%, 31%)
LABlab(50.2 49.8 -32.2)
LCHlch(50.2 59.4 327.1)
OKLCHoklch(0.591 0.164 327.4)
Decimal11490479
Display P3color(display-p3 0.686 0.329 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af54af on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#af54af on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4B70B2
deuteranopia · #677CAC
tritanopia · #B45E7A

Color scale — 50 to 950

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

#FAF5FA
#F4EBF4
#E8D3E8
#DBB3DB
#C98CC9
#B866B8
#af54af
#8B418B
#6F346F
#522952
#331933
Base = 600Lightest = 50 · #FAF5FADarkest = 950 · #331933
:root {
  --brand-50: #FAF5FA;
  --brand-100: #F4EBF4;
  --brand-200: #E8D3E8;
  --brand-300: #DBB3DB;
  --brand-400: #C98CC9;
  --brand-500: #B866B8;
  --brand-600: #af54af;
  --brand-700: #8B418B;
  --brand-800: #6F346F;
  --brand-900: #522952;
  --brand-950: #331933;
  --brand: #af54af;
  --brand-ink: #000000;
}

Colors that work with #af54af

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#E5C7E5
Hairlines and dividers
Muted text#9B4B9B
Captions on the surface
Accent#518F3D
Second voice, not a rival
Dark variant#572957
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 #af54af

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#54AF54
Analogous left#8254AF
Analogous right#AF5482
Split-complement 1#82AF54
Split-complement 2#54AF82
Triadic 1#AFAF54
Triadic 2#54AFAF
Tetradic#AF8254

RGB percentages

Red68.6%
Green32.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta52.0%
Yellow0.0%
Key (black)31.4%

Color previews

#af54af text on a black background

contrast 4.71:1

Card sample

#af54af text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af54af

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.

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

#af54af, answered

What color is #af54af?

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

What is the RGB value of #af54af?

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

Is #af54af a light or a dark color?

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

Should I use black or white text on #af54af?

Black. It scores 4.71:1 against #af54af, versus 4.46:1 for white — AA at any size.

What is the complementary color of #af54af?

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

What colors go well with #af54af?

For interface work: #FAF5FA as the surface, #E5C7E5 for borders, #9B4B9B for secondary text, #518F3D as an accent and #572957 for hover and pressed states. For a palette, the analogous pair #8254AF and #AF5482 stays calm, while #54AF54 is the loudest partner.

What is #af54af in CMYK for printing?

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

Is #af54af warm or cool?

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

Work with #af54af in the Color Lab