Skip to content

#af2fa7

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

RGB
175, 47, 167
HSL
304°, 58%, 44%
CMYK
0, 73, 5, 31
Luminance
0.1394

At a glance

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

Hex
#af2fa7
Hue
304°
magenta / pink
Saturation
58%
vivid
Lightness
44%
dark
Brightness
69%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1394
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.54:1
Closest name
Dark Orchid
ΔE2000 8.3
Where it sits
Hue304° of 360°
Saturation58%
Lightness44%
Temperature
Warm ← → Cool48% 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#af2fa7
RGBrgb(175, 47, 167)
HSLhsl(304, 58%, 44%)
CMYKcmyk(0%, 73%, 5%, 31%)
LABlab(44.1 64.0 -37.0)
LCHlch(44.1 73.9 330.0)
OKLCHoklch(0.546 0.208 330.7)
Decimal11480999
Display P3color(display-p3 0.686 0.184 0.655)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fa7 on white: 5.54:1
AA ✓ pass · AA-large · AAA
Aa
#af2fa7 on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #225DAA
deuteranopia · #566FA4
tritanopia · #B63F68

Color scale — 50 to 950

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

#FBF4FA
#F7E9F6
#EFCDED
#E7A7E3
#DB7AD5
#D04EC7
#C134B8
#af2fa7
#81237B
#5E1D5A
#3B1238
Base = 700Lightest = 50 · #FBF4FADarkest = 950 · #3B1238
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F7E9F6;
  --brand-200: #EFCDED;
  --brand-300: #E7A7E3;
  --brand-400: #DB7AD5;
  --brand-500: #D04EC7;
  --brand-600: #C134B8;
  --brand-700: #af2fa7;
  --brand-800: #81237B;
  --brand-900: #5E1D5A;
  --brand-950: #3B1238;
  --brand: #af2fa7;
  --brand-ink: #ffffff;
}

Colors that work with #af2fa7

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#EDC0EA
Hairlines and dividers
Muted text#9B4B96
Captions on the surface
Accent#3FA527
Second voice, not a rival
Dark variant#651B60
Hover, pressed, headers
Light variant#FAEBF9
Selected rows, tints
Dark surface#241423
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 #af2fa7

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#2FAF37
Analogous left#772FAF
Analogous right#AF2F67
Split-complement 1#67AF2F
Split-complement 2#2FAF77
Triadic 1#A7AF2F
Triadic 2#2FA7AF
Tetradic#AF772F

RGB percentages

Red68.6%
Green18.4%
Blue65.5%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow4.6%
Key (black)31.4%

Color previews

#af2fa7 text on a black background

contrast 3.79:1

Card sample

#af2fa7 text on a white background

contrast 5.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fa7

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.

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

#af2fa7, answered

What color is #af2fa7?

#af2fa7 is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 8.3). It sits at 304° on the hue wheel with 58% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #af2fa7?

rgb(175, 47, 167) — 175 red, 47 green and 167 blue out of 255, or 68.6% / 18.4% / 65.5% by channel.

Is #af2fa7 a light or a dark color?

It is a dark color. Relative luminance is 0.1394 and perceived brightness is 46%, so white text on it reaches 5.54:1.

Should I use black or white text on #af2fa7?

White. It scores 5.54:1 against #af2fa7, versus 3.79:1 for black — AA at any size.

What is the complementary color of #af2fa7?

#2FAF37 sits directly opposite on the wheel. Softer options are the split-complements #67AF2F and #2FAF77, which give the same contrast with far less vibration.

What colors go well with #af2fa7?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #3FA527 as an accent and #651B60 for hover and pressed states. For a palette, the analogous pair #772FAF and #AF2F67 stays calm, while #2FAF37 is the loudest partner.

What is #af2fa7 in CMYK for printing?

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

Is #af2fa7 warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF2F78; nudged cooler, #892DB1.

Work with #af2fa7 in the Color Lab