Skip to content

#af34ad

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

RGB
175, 52, 173
HSL
301°, 54%, 45%
CMYK
0, 70, 1, 31
Luminance
0.1459

At a glance

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

Hex
#af34ad
Hue
301°
magenta / pink
Saturation
54%
vivid
Lightness
45%
dark
Brightness
69%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1459
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.36:1
Closest name
Dark Orchid
ΔE2000 7.6
Where it sits
Hue301° of 360°
Saturation54%
Lightness45%
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#af34ad
RGBrgb(175, 52, 173)
HSLhsl(301, 54%, 45%)
CMYKcmyk(0%, 70%, 1%, 31%)
LABlab(45.1 63.2 -39.1)
LCHlch(45.1 74.3 328.3)
OKLCHoklch(0.554 0.208 328.6)
Decimal11482285
Display P3color(display-p3 0.686 0.204 0.678)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af34ad on white: 5.36:1
AA ✓ pass · AA-large · AAA
Aa
#af34ad on black: 3.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2260B0
deuteranopia · #5570AA
tritanopia · #B5456D

Color scale — 50 to 950

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

#FBF4FA
#F6E9F6
#EECEED
#E5A8E4
#D87DD7
#CC52CA
#af34ad
#9D2F9B
#7E257C
#5C1F5B
#391339
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #391339
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F6E9F6;
  --brand-200: #EECEED;
  --brand-300: #E5A8E4;
  --brand-400: #D87DD7;
  --brand-500: #CC52CA;
  --brand-600: #af34ad;
  --brand-700: #9D2F9B;
  --brand-800: #7E257C;
  --brand-900: #5C1F5B;
  --brand-950: #391339;
  --brand: #af34ad;
  --brand-ink: #ffffff;
}

Colors that work with #af34ad

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#ECC0EC
Hairlines and dividers
Muted text#9B4B9A
Captions on the surface
Accent#46A22A
Second voice, not a rival
Dark variant#621D61
Hover, pressed, headers
Light variant#F9EBF9
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 #af34ad

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#34AF36
Analogous left#7434AF
Analogous right#AF346F
Split-complement 1#6FAF34
Split-complement 2#34AF74
Triadic 1#ADAF34
Triadic 2#34ADAF
Tetradic#AF7434

RGB percentages

Red68.6%
Green20.4%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta70.3%
Yellow1.1%
Key (black)31.4%

Color previews

#af34ad text on a black background

contrast 3.92:1

Card sample

#af34ad text on a white background

contrast 5.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af34ad

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.

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

#af34ad, answered

What color is #af34ad?

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

What is the RGB value of #af34ad?

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

Is #af34ad a light or a dark color?

It is a dark color. Relative luminance is 0.1459 and perceived brightness is 47%, so white text on it reaches 5.36:1.

Should I use black or white text on #af34ad?

White. It scores 5.36:1 against #af34ad, versus 3.92:1 for black — AA at any size.

What is the complementary color of #af34ad?

#34AF36 sits directly opposite on the wheel. Softer options are the split-complements #6FAF34 and #34AF74, which give the same contrast with far less vibration.

What colors go well with #af34ad?

For interface work: #FAF4FA as the surface, #ECC0EC for borders, #9B4B9A for secondary text, #46A22A as an accent and #621D61 for hover and pressed states. For a palette, the analogous pair #7434AF and #AF346F stays calm, while #34AF36 is the loudest partner.

What is #af34ad in CMYK for printing?

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

Is #af34ad 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 #AF3480; nudged cooler, #8532B1.

Work with #af34ad in the Color Lab