Skip to content

#af1db2

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

RGB
175, 29, 178
HSL
299°, 72%, 41%
CMYK
2, 84, 0, 30
Luminance
0.1321

At a glance

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

Hex
#af1db2
Hue
299°
magenta / pink
Saturation
72%
vivid
Lightness
41%
dark
Brightness
70%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1321
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.77:1
Closest name
Dark Orchid
ΔE2000 6.4
Where it sits
Hue299° of 360°
Saturation72%
Lightness41%
Temperature
Warm ← → Cool51% 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#af1db2
RGBrgb(175, 29, 178)
HSLhsl(299, 72%, 41%)
CMYKcmyk(2%, 84%, 0%, 30%)
LABlab(43.1 70.6 -45.2)
LCHlch(43.1 83.8 327.4)
OKLCHoklch(0.540 0.233 327.3)
Decimal11476402
Display P3color(display-p3 0.686 0.114 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1db2 on white: 5.77:1
AA ✓ pass · AA-large · AAA
Aa
#af1db2 on black: 3.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AB6
deuteranopia · #496CAF
tritanopia · #B43B6B

Color scale — 50 to 950

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

#FBF3FC
#F8E7F8
#F2C9F3
#EE9FEF
#E56EE7
#DC3EE0
#CF22D3
#af1db2
#8A178C
#641566
#3F0D40
Base = 700Lightest = 50 · #FBF3FCDarkest = 950 · #3F0D40
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F8E7F8;
  --brand-200: #F2C9F3;
  --brand-300: #EE9FEF;
  --brand-400: #E56EE7;
  --brand-500: #DC3EE0;
  --brand-600: #CF22D3;
  --brand-700: #af1db2;
  --brand-800: #8A178C;
  --brand-900: #641566;
  --brand-950: #3F0D40;
  --brand: #af1db2;
  --brand-ink: #ffffff;
}

Colors that work with #af1db2

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#ECC0ED
Hairlines and dividers
Muted text#994B9B
Captions on the surface
Accent#42B319
Second voice, not a rival
Dark variant#6C126E
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 #af1db2

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#20B21D
Analogous left#651DB2
Analogous right#B21D6B
Split-complement 1#6BB21D
Split-complement 2#1DB265
Triadic 1#B2AF1D
Triadic 2#1DB2AF
Tetradic#B2651D

RGB percentages

Red68.6%
Green11.4%
Blue69.8%

CMYK percentages

Cyan1.7%
Magenta83.7%
Yellow0.0%
Key (black)30.2%

Color previews

#af1db2 text on a black background

contrast 3.64:1

Card sample

#af1db2 text on a white background

contrast 5.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1db2

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.

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

#af1db2, answered

What color is #af1db2?

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

What is the RGB value of #af1db2?

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

Is #af1db2 a light or a dark color?

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

Should I use black or white text on #af1db2?

White. It scores 5.77:1 against #af1db2, versus 3.64:1 for black — AA at any size.

What is the complementary color of #af1db2?

#20B21D sits directly opposite on the wheel. Softer options are the split-complements #6BB21D and #1DB265, which give the same contrast with far less vibration.

What colors go well with #af1db2?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #994B9B for secondary text, #42B319 as an accent and #6C126E for hover and pressed states. For a palette, the analogous pair #651DB2 and #B21D6B stays calm, while #20B21D is the loudest partner.

What is #af1db2 in CMYK for printing?

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

Is #af1db2 warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B21D7E; nudged cooler, #791BB4.

Work with #af1db2 in the Color Lab