Skip to content

#af1da7

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

RGB
175, 29, 167
HSL
303°, 72%, 40%
CMYK
0, 83, 5, 31
Luminance
0.1278

At a glance

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

Hex
#af1da7
Hue
303°
magenta / pink
Saturation
72%
vivid
Lightness
40%
dark
Brightness
69%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1278
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.90:1
Closest name
Dark Orchid
ΔE2000 8.1
Where it sits
Hue303° of 360°
Saturation72%
Lightness40%
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#af1da7
RGBrgb(175, 29, 167)
HSLhsl(303, 72%, 40%)
CMYKcmyk(0%, 83%, 5%, 31%)
LABlab(42.4 68.9 -39.7)
LCHlch(42.4 79.5 330.1)
OKLCHoklch(0.534 0.225 330.8)
Decimal11476391
Display P3color(display-p3 0.686 0.114 0.655)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1da7 on white: 5.90:1
AA ✓ pass · AA-large · AAA
Aa
#af1da7 on black: 3.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058AA
deuteranopia · #506BA4
tritanopia · #B63464

Color scale — 50 to 950

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

#FCF3FB
#F8E7F7
#F3C9F0
#EF9FEB
#E76FE0
#DF3ED6
#D223C8
#af1da7
#8C1786
#661561
#3F0D3D
Base = 700Lightest = 50 · #FCF3FBDarkest = 950 · #3F0D3D
:root {
  --brand-50: #FCF3FB;
  --brand-100: #F8E7F7;
  --brand-200: #F3C9F0;
  --brand-300: #EF9FEB;
  --brand-400: #E76FE0;
  --brand-500: #DF3ED6;
  --brand-600: #D223C8;
  --brand-700: #af1da7;
  --brand-800: #8C1786;
  --brand-900: #661561;
  --brand-950: #3F0D3D;
  --brand: #af1da7;
  --brand-ink: #ffffff;
}

Colors that work with #af1da7

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#37B319
Second voice, not a rival
Dark variant#6D1268
Hover, pressed, headers
Light variant#FBE9FA
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 #af1da7

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#1DAF25
Analogous left#6E1DAF
Analogous right#AF1D5E
Split-complement 1#5EAF1D
Split-complement 2#1DAF6E
Triadic 1#A7AF1D
Triadic 2#1DA7AF
Tetradic#AF6E1D

RGB percentages

Red68.6%
Green11.4%
Blue65.5%

CMYK percentages

Cyan0.0%
Magenta83.4%
Yellow4.6%
Key (black)31.4%

Color previews

#af1da7 text on a black background

contrast 3.56:1

Card sample

#af1da7 text on a white background

contrast 5.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1da7

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.

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

#af1da7, answered

What color is #af1da7?

#af1da7 is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 8.1). It sits at 303° on the hue wheel with 72% saturation and 40% lightness, which reads as neutral.

What is the RGB value of #af1da7?

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

Is #af1da7 a light or a dark color?

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

Should I use black or white text on #af1da7?

White. It scores 5.90:1 against #af1da7, versus 3.56:1 for black — AA at any size.

What is the complementary color of #af1da7?

#1DAF25 sits directly opposite on the wheel. Softer options are the split-complements #5EAF1D and #1DAF6E, which give the same contrast with far less vibration.

What colors go well with #af1da7?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #37B319 as an accent and #6D1268 for hover and pressed states. For a palette, the analogous pair #6E1DAF and #AF1D5E stays calm, while #1DAF25 is the loudest partner.

What is #af1da7 in CMYK for printing?

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

Is #af1da7 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 #AF1D71; nudged cooler, #821BB1.

Work with #af1da7 in the Color Lab