Skip to content

#af0faa

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

RGB
175, 15, 170
HSL
302°, 84%, 37%
CMYK
0, 91, 3, 31
Luminance
0.1236

At a glance

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

Hex
#af0faa
Hue
302°
magenta / pink
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1236
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.05:1
Closest name
Dark Orchid
ΔE2000 7.7
Where it sits
Hue302° of 360°
Saturation84%
Lightness37%
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#af0faa
RGBrgb(175, 15, 170)
HSLhsl(302, 84%, 37%)
CMYKcmyk(0%, 91%, 3%, 31%)
LABlab(41.8 71.8 -42.5)
LCHlch(41.8 83.4 329.4)
OKLCHoklch(0.530 0.235 329.9)
Decimal11472810
Display P3color(display-p3 0.686 0.059 0.667)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0faa on white: 6.05:1
AA ✓ pass · AA-large · AAA
Aa
#af0faa on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056AE
deuteranopia · #4B69A7
tritanopia · #B63164

Color scale — 50 to 950

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

#FCF2FC
#FAE6F9
#F6C5F5
#F698F3
#F264ED
#ED30E7
#E113DB
#af0faa
#960D92
#6D0E6A
#440942
Base = 700Lightest = 50 · #FCF2FCDarkest = 950 · #440942
:root {
  --brand-50: #FCF2FC;
  --brand-100: #FAE6F9;
  --brand-200: #F6C5F5;
  --brand-300: #F698F3;
  --brand-400: #F264ED;
  --brand-500: #ED30E7;
  --brand-600: #E113DB;
  --brand-700: #af0faa;
  --brand-800: #960D92;
  --brand-900: #6D0E6A;
  --brand-950: #440942;
  --brand: #af0faa;
  --brand-ink: #ffffff;
}

Colors that work with #af0faa

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#EDC0EB
Hairlines and dividers
Muted text#9B4B98
Captions on the surface
Accent#34C00C
Second voice, not a rival
Dark variant#750A72
Hover, pressed, headers
Light variant#FDE8FC
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 #af0faa

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#0FAF14
Analogous left#640FAF
Analogous right#AF0F5A
Split-complement 1#5AAF0F
Split-complement 2#0FAF64
Triadic 1#AAAF0F
Triadic 2#0FAAAF
Tetradic#AF640F

RGB percentages

Red68.6%
Green5.9%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow2.9%
Key (black)31.4%

Color previews

#af0faa text on a black background

contrast 3.47:1

Card sample

#af0faa text on a white background

contrast 6.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0faa

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.

#af0faa 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af0faa, answered

What color is #af0faa?

#af0faa is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 7.7). It sits at 302° on the hue wheel with 84% saturation and 37% lightness, which reads as neutral.

What is the RGB value of #af0faa?

rgb(175, 15, 170) — 175 red, 15 green and 170 blue out of 255, or 68.6% / 5.9% / 66.7% by channel.

Is #af0faa a light or a dark color?

It is a dark color. Relative luminance is 0.1236 and perceived brightness is 44%, so white text on it reaches 6.05:1.

Should I use black or white text on #af0faa?

White. It scores 6.05:1 against #af0faa, versus 3.47:1 for black — AA at any size.

What is the complementary color of #af0faa?

#0FAF14 sits directly opposite on the wheel. Softer options are the split-complements #5AAF0F and #0FAF64, which give the same contrast with far less vibration.

What colors go well with #af0faa?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B98 for secondary text, #34C00C as an accent and #750A72 for hover and pressed states. For a palette, the analogous pair #640FAF and #AF0F5A stays calm, while #0FAF14 is the loudest partner.

What is #af0faa in CMYK for printing?

cmyk(0%, 91%, 3%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af0faa 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 #AF0F6F; nudged cooler, #7A0DB1.

Work with #af0faa in the Color Lab