Skip to content

#af20ad

a dark, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
175, 32, 173
HSL
301°, 69%, 41%
CMYK
0, 82, 1, 31
Luminance
0.1316

At a glance

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

Hex
#af20ad
Hue
301°
magenta / pink
Saturation
69%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1316
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.78:1
Closest name
Dark Orchid
ΔE2000 7.2
Where it sits
Hue301° of 360°
Saturation69%
Lightness41%
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#af20ad
RGBrgb(175, 32, 173)
HSLhsl(301, 69%, 41%)
CMYKcmyk(0%, 82%, 1%, 31%)
LABlab(43.0 69.1 -42.3)
LCHlch(43.0 81.1 328.5)
OKLCHoklch(0.539 0.227 328.8)
Decimal11477165
Display P3color(display-p3 0.686 0.125 0.678)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af20ad on white: 5.78:1
AA ✓ pass · AA-large · AAA
Aa
#af20ad on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AB1
deuteranopia · #4D6CAA
tritanopia · #B53968

Color scale — 50 to 950

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

#FBF3FB
#F8E7F8
#F2CAF1
#EEA0ED
#E571E3
#DC41DA
#CF26CD
#af20ad
#8A1988
#641663
#3F0E3E
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3F0E3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E7F8;
  --brand-200: #F2CAF1;
  --brand-300: #EEA0ED;
  --brand-400: #E571E3;
  --brand-500: #DC41DA;
  --brand-600: #CF26CD;
  --brand-700: #af20ad;
  --brand-800: #8A1988;
  --brand-900: #641663;
  --brand-950: #3F0E3E;
  --brand: #af20ad;
  --brand-ink: #ffffff;
}

Colors that work with #af20ad

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4FA
Tinted page background
Border#EDC0EC
Hairlines and dividers
Muted text#9B4B9A
Captions on the surface
Accent#3FB01C
Second voice, not a rival
Dark variant#6C146B
Hover, pressed, headers
Light variant#FBE9FB
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 #af20ad

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#20AF22
Analogous left#6920AF
Analogous right#AF2066
Split-complement 1#66AF20
Split-complement 2#20AF69
Triadic 1#ADAF20
Triadic 2#20ADAF
Tetradic#AF6920

RGB percentages

Red68.6%
Green12.5%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta81.7%
Yellow1.1%
Key (black)31.4%

Color previews

#af20ad text on a black background

contrast 3.63:1

Card sample

#af20ad text on a white background

contrast 5.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af20ad

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.

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

#af20ad, answered

What color is #af20ad?

#af20ad is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7.2). It sits at 301° on the hue wheel with 69% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #af20ad?

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

Is #af20ad a light or a dark color?

It is a dark color. Relative luminance is 0.1316 and perceived brightness is 45%, so white text on it reaches 5.78:1.

Should I use black or white text on #af20ad?

White. It scores 5.78:1 against #af20ad, versus 3.63:1 for black — AA at any size.

What is the complementary color of #af20ad?

#20AF22 sits directly opposite on the wheel. Softer options are the split-complements #66AF20 and #20AF69, which give the same contrast with far less vibration.

What colors go well with #af20ad?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B9A for secondary text, #3FB01C as an accent and #6C146B for hover and pressed states. For a palette, the analogous pair #6920AF and #AF2066 stays calm, while #20AF22 is the loudest partner.

What is #af20ad in CMYK for printing?

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

Is #af20ad 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 #AF2079; nudged cooler, #7D1EB1.

Work with #af20ad in the Color Lab