Skip to content

#af6ab8

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

RGB
175, 106, 184
HSL
293°, 36%, 57%
CMYK
5, 42, 0, 28
Luminance
0.2288

At a glance

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

Hex
#af6ab8
Hue
293°
magenta / pink
Saturation
36%
soft
Lightness
57%
balanced
Brightness
72%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2288
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
5.58:1
Closest name
Medium Orchid
ΔE2000 6.9
Where it sits
Hue293° of 360°
Saturation36%
Lightness57%
Temperature
Warm ← → Cool54% 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#af6ab8
RGBrgb(175, 106, 184)
HSLhsl(293, 36%, 57%)
CMYKcmyk(5%, 42%, 0%, 28%)
LABlab(55.0 40.1 -30.0)
LCHlch(55.0 50.1 323.2)
OKLCHoklch(0.628 0.136 322.8)
Decimal11496120
Display P3color(display-p3 0.686 0.416 0.722)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6ab8 on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#af6ab8 on black: 5.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #617EBB
deuteranopia · #7386B6
tritanopia · #B17388

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af6ab8 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
#F3EBF4
#E6D3E8
#D6B3DB
#C28DC9
#af6ab8
#9C4FA6
#82428A
#68356F
#4D2951
#301A33
Base = 500Lightest = 50 · #F9F5F9Darkest = 950 · #301A33
:root {
  --brand-50: #F9F5F9;
  --brand-100: #F3EBF4;
  --brand-200: #E6D3E8;
  --brand-300: #D6B3DB;
  --brand-400: #C28DC9;
  --brand-500: #af6ab8;
  --brand-600: #9C4FA6;
  --brand-700: #82428A;
  --brand-800: #68356F;
  --brand-900: #4D2951;
  --brand-950: #301A33;
  --brand: #af6ab8;
  --brand-ink: #000000;
}

Colors that work with #af6ab8

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#F9F5FA
Tinted page background
Border#E1C8E5
Hairlines and dividers
Muted text#924B9B
Captions on the surface
Accent#5A8E3E
Second voice, not a rival
Dark variant#512956
Hover, pressed, headers
Light variant#F6EEF7
Selected rows, tints
Dark surface#231424
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 #af6ab8

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#73B86A
Analogous left#886AB8
Analogous right#B86A9A
Split-complement 1#9AB86A
Split-complement 2#6AB888
Triadic 1#B8AF6A
Triadic 2#6AB8AF
Tetradic#B8886A

RGB percentages

Red68.6%
Green41.6%
Blue72.2%

CMYK percentages

Cyan4.9%
Magenta42.4%
Yellow0.0%
Key (black)27.8%

Color previews

#af6ab8 text on a black background

contrast 5.58:1

Card sample

#af6ab8 text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6ab8

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.

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

#af6ab8, answered

What color is #af6ab8?

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

What is the RGB value of #af6ab8?

rgb(175, 106, 184) — 175 red, 106 green and 184 blue out of 255, or 68.6% / 41.6% / 72.2% by channel.

Is #af6ab8 a light or a dark color?

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

Should I use black or white text on #af6ab8?

Black. It scores 5.58:1 against #af6ab8, versus 3.77:1 for white — AA at any size.

What is the complementary color of #af6ab8?

#73B86A sits directly opposite on the wheel. Softer options are the split-complements #9AB86A and #6AB888, which give the same contrast with far less vibration.

What colors go well with #af6ab8?

For interface work: #F9F5FA as the surface, #E1C8E5 for borders, #924B9B for secondary text, #5A8E3E as an accent and #512956 for hover and pressed states. For a palette, the analogous pair #886AB8 and #B86A9A stays calm, while #73B86A is the loudest partner.

What is #af6ab8 in CMYK for printing?

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

Is #af6ab8 warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B86AA4; nudged cooler, #9368BA.

Work with #af6ab8 in the Color Lab