Skip to content

#af02b9

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

RGB
175, 2, 185
HSL
297°, 98%, 37%
CMYK
5, 99, 0, 28
Luminance
0.1266

At a glance

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

Hex
#af02b9
Hue
297°
magenta / pink
Saturation
98%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1266
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.95:1
Closest name
Dark Orchid
ΔE2000 5.8
Where it sits
Hue297° of 360°
Saturation98%
Lightness37%
Temperature
Warm ← → Cool52% 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#af02b9
RGBrgb(175, 2, 185)
HSLhsl(297, 98%, 37%)
CMYKcmyk(5%, 99%, 0%, 28%)
LABlab(42.3 75.4 -50.7)
LCHlch(42.3 90.8 326.1)
OKLCHoklch(0.536 0.249 325.4)
Decimal11469497
Display P3color(display-p3 0.686 0.008 0.725)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af02b9 on white: 5.95:1
AA ✓ pass · AA-large · AAA
Aa
#af02b9 on black: 3.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058BD
deuteranopia · #3D6AB6
tritanopia · #B3376C

Color scale — 50 to 950

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

#FDF1FD
#FBE3FC
#F8C1FB
#F890FE
#F458FD
#F121FD
#E503F2
#af02b9
#9902A1
#6E0674
#450449
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #450449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FBE3FC;
  --brand-200: #F8C1FB;
  --brand-300: #F890FE;
  --brand-400: #F458FD;
  --brand-500: #F121FD;
  --brand-600: #E503F2;
  --brand-700: #af02b9;
  --brand-800: #9902A1;
  --brand-900: #6E0674;
  --brand-950: #450449;
  --brand: #af02b9;
  --brand-ink: #ffffff;
}

Colors that work with #af02b9

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#EAC0ED
Hairlines and dividers
Muted text#964B9B
Captions on the surface
Accent#3ECC00
Second voice, not a rival
Dark variant#77017E
Hover, pressed, headers
Light variant#FDE6FF
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 #af02b9

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#0CB902
Analogous left#5402B9
Analogous right#B90268
Split-complement 1#68B902
Split-complement 2#02B954
Triadic 1#B9AF02
Triadic 2#02B9AF
Tetradic#B95402

RGB percentages

Red68.6%
Green0.8%
Blue72.5%

CMYK percentages

Cyan5.4%
Magenta98.9%
Yellow0.0%
Key (black)27.5%

Color previews

#af02b9 text on a black background

contrast 3.53:1

Card sample

#af02b9 text on a white background

contrast 5.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af02b9

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.

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

#af02b9, answered

What color is #af02b9?

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

What is the RGB value of #af02b9?

rgb(175, 2, 185) — 175 red, 2 green and 185 blue out of 255, or 68.6% / 0.8% / 72.5% by channel.

Is #af02b9 a light or a dark color?

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

Should I use black or white text on #af02b9?

White. It scores 5.95:1 against #af02b9, versus 3.53:1 for black — AA at any size.

What is the complementary color of #af02b9?

#0CB902 sits directly opposite on the wheel. Softer options are the split-complements #68B902 and #02B954, which give the same contrast with far less vibration.

What colors go well with #af02b9?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #3ECC00 as an accent and #77017E for hover and pressed states. For a palette, the analogous pair #5402B9 and #B90268 stays calm, while #0CB902 is the loudest partner.

What is #af02b9 in CMYK for printing?

cmyk(5%, 99%, 0%, 28%). 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 #af02b9 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B90280; nudged cooler, #6C00BB.

Work with #af02b9 in the Color Lab