Skip to content

#af6fa2

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

RGB
175, 111, 162
HSL
312°, 29%, 56%
CMYK
0, 37, 7, 31
Luminance
0.2309

At a glance

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

Hex
#af6fa2
Hue
312°
magenta / pink
Saturation
29%
soft
Lightness
56%
balanced
Brightness
69%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2309
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
5.62:1
Closest name
Orchid
ΔE2000 11
Where it sits
Hue312° of 360°
Saturation29%
Lightness56%
Temperature
Warm ← → Cool44% 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#af6fa2
RGBrgb(175, 111, 162)
HSLhsl(312, 29%, 56%)
CMYKcmyk(0%, 37%, 7%, 31%)
LABlab(55.2 33.2 -16.9)
LCHlch(55.2 37.3 333.0)
OKLCHoklch(0.627 0.105 334.5)
Decimal11497378
Display P3color(display-p3 0.686 0.435 0.635)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6fa2 on white: 3.74:1
AA ✗ fail · AA-large · AAA
Aa
#af6fa2 on black: 5.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6F7EA4
deuteranopia · #7F87A0
tritanopia · #B57282

Color scale — 50 to 950

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

#F9F6F8
#F3ECF2
#E6D6E3
#D7B7D0
#C393B9
#af6fa2
#9D578F
#834977
#693A5F
#4D2D47
#301C2C
Base = 500Lightest = 50 · #F9F6F8Darkest = 950 · #301C2C
:root {
  --brand-50: #F9F6F8;
  --brand-100: #F3ECF2;
  --brand-200: #E6D6E3;
  --brand-300: #D7B7D0;
  --brand-400: #C393B9;
  --brand-500: #af6fa2;
  --brand-600: #9D578F;
  --brand-700: #834977;
  --brand-800: #693A5F;
  --brand-900: #4D2D47;
  --brand-950: #301C2C;
  --brand: #af6fa2;
  --brand-ink: #000000;
}

Colors that work with #af6fa2

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#FAF5F9
Tinted page background
Border#E2CBDD
Hairlines and dividers
Muted text#945286
Captions on the surface
Accent#478745
Second voice, not a rival
Dark variant#522E4B
Hover, pressed, headers
Light variant#F6EFF4
Selected rows, tints
Dark surface#241421
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 #af6fa2

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#6FAF7C
Analogous left#9C6FAF
Analogous right#AF6F82
Split-complement 1#82AF6F
Split-complement 2#6FAF9C
Triadic 1#A2AF6F
Triadic 2#6FA2AF
Tetradic#AF9C6F

RGB percentages

Red68.6%
Green43.5%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta36.6%
Yellow7.4%
Key (black)31.4%

Color previews

#af6fa2 text on a black background

contrast 5.62:1

Card sample

#af6fa2 text on a white background

contrast 3.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6fa2

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.

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

#af6fa2, answered

What color is #af6fa2?

#af6fa2 is a balanced soft magenta / pink, closest to Orchid (ΔE2000 11). It sits at 312° on the hue wheel with 29% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #af6fa2?

rgb(175, 111, 162) — 175 red, 111 green and 162 blue out of 255, or 68.6% / 43.5% / 63.5% by channel.

Is #af6fa2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2309 and perceived brightness is 55%, so black text on it reaches 5.62:1.

Should I use black or white text on #af6fa2?

Black. It scores 5.62:1 against #af6fa2, versus 3.74:1 for white — AA at any size.

What is the complementary color of #af6fa2?

#6FAF7C sits directly opposite on the wheel. Softer options are the split-complements #82AF6F and #6FAF9C, which give the same contrast with far less vibration.

What colors go well with #af6fa2?

For interface work: #FAF5F9 as the surface, #E2CBDD for borders, #945286 for secondary text, #478745 as an accent and #522E4B for hover and pressed states. For a palette, the analogous pair #9C6FAF and #AF6F82 stays calm, while #6FAF7C is the loudest partner.

What is #af6fa2 in CMYK for printing?

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

Is #af6fa2 warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF6F8B; nudged cooler, #A66DB1.

Work with #af6fa2 in the Color Lab