Skip to content

#af02bd

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

RGB
175, 2, 189
HSL
296°, 98%, 38%
CMYK
7, 99, 0, 26
Luminance
0.1283

At a glance

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

Hex
#af02bd
Hue
296°
magenta / pink
Saturation
98%
electric
Lightness
38%
dark
Brightness
74%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1283
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.89:1
Closest name
Dark Orchid
ΔE2000 5.3
Where it sits
Hue296° of 360°
Saturation98%
Lightness38%
Temperature
Warm ← → Cool53% 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#af02bd
RGBrgb(175, 2, 189)
HSLhsl(296, 98%, 38%)
CMYKcmyk(7%, 99%, 0%, 26%)
LABlab(42.5 76.0 -52.6)
LCHlch(42.5 92.4 325.3)
OKLCHoklch(0.539 0.252 324.3)
Decimal11469501
Display P3color(display-p3 0.686 0.008 0.741)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af02bd on white: 5.89:1
AA ✓ pass · AA-large · AAA
Aa
#af02bd on black: 3.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059C1
deuteranopia · #3A6AB9
tritanopia · #B23A6E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af02bd 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
#FAE3FC
#F7C1FB
#F690FE
#F158FD
#EC21FD
#E003F2
#af02bd
#9602A1
#6C0674
#440449
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #440449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FAE3FC;
  --brand-200: #F7C1FB;
  --brand-300: #F690FE;
  --brand-400: #F158FD;
  --brand-500: #EC21FD;
  --brand-600: #E003F2;
  --brand-700: #af02bd;
  --brand-800: #9602A1;
  --brand-900: #6C0674;
  --brand-950: #440449;
  --brand: #af02bd;
  --brand-ink: #ffffff;
}

Colors that work with #af02bd

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#E9C0ED
Hairlines and dividers
Muted text#954B9B
Captions on the surface
Accent#42CC00
Second voice, not a rival
Dark variant#75017E
Hover, pressed, headers
Light variant#FDE6FF
Selected rows, tints
Dark surface#231424
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 #af02bd

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#10BD02
Analogous left#5202BD
Analogous right#BD026E
Split-complement 1#6EBD02
Split-complement 2#02BD52
Triadic 1#BDAF02
Triadic 2#02BDAF
Tetradic#BD5202

RGB percentages

Red68.6%
Green0.8%
Blue74.1%

CMYK percentages

Cyan7.4%
Magenta98.9%
Yellow0.0%
Key (black)25.9%

Color previews

#af02bd text on a black background

contrast 3.57:1

Card sample

#af02bd text on a white background

contrast 5.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af02bd

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.

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

#af02bd, answered

What color is #af02bd?

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

What is the RGB value of #af02bd?

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

Is #af02bd a light or a dark color?

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

Should I use black or white text on #af02bd?

White. It scores 5.89:1 against #af02bd, versus 3.57:1 for black — AA at any size.

What is the complementary color of #af02bd?

#10BD02 sits directly opposite on the wheel. Softer options are the split-complements #6EBD02 and #02BD52, which give the same contrast with far less vibration.

What colors go well with #af02bd?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #954B9B for secondary text, #42CC00 as an accent and #75017E for hover and pressed states. For a palette, the analogous pair #5202BD and #BD026E stays calm, while #10BD02 is the loudest partner.

What is #af02bd in CMYK for printing?

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

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

Work with #af02bd in the Color Lab