Skip to content

#af06b2

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

RGB
175, 6, 178
HSL
299°, 94%, 36%
CMYK
2, 97, 0, 30
Luminance
0.1246

At a glance

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

Hex
#af06b2
Hue
299°
magenta / pink
Saturation
94%
electric
Lightness
36%
dark
Brightness
70%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1246
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.01:1
Closest name
Dark Orchid
ΔE2000 6.6
Where it sits
Hue299° of 360°
Saturation94%
Lightness36%
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#af06b2
RGBrgb(175, 6, 178)
HSLhsl(299, 94%, 36%)
CMYKcmyk(2%, 97%, 0%, 30%)
LABlab(41.9 73.9 -47.0)
LCHlch(41.9 87.6 327.5)
OKLCHoklch(0.532 0.243 327.4)
Decimal11470514
Display P3color(display-p3 0.686 0.024 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af06b2 on white: 6.01:1
AA ✓ pass · AA-large · AAA
Aa
#af06b2 on black: 3.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057B6
deuteranopia · #4469AF
tritanopia · #B43468

Color scale — 50 to 950

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

#FDF2FD
#FBE4FB
#F9C2FA
#FA92FB
#F75CFA
#F426F8
#E908ED
#af06b2
#9B059E
#700972
#460547
Base = 700Lightest = 50 · #FDF2FDDarkest = 950 · #460547
:root {
  --brand-50: #FDF2FD;
  --brand-100: #FBE4FB;
  --brand-200: #F9C2FA;
  --brand-300: #FA92FB;
  --brand-400: #F75CFA;
  --brand-500: #F426F8;
  --brand-600: #E908ED;
  --brand-700: #af06b2;
  --brand-800: #9B059E;
  --brand-900: #700972;
  --brand-950: #460547;
  --brand: #af06b2;
  --brand-ink: #ffffff;
}

Colors that work with #af06b2

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#9A4B9B
Captions on the surface
Accent#37CA02
Second voice, not a rival
Dark variant#79047B
Hover, pressed, headers
Light variant#FEE6FE
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 #af06b2

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#09B206
Analogous left#5906B2
Analogous right#B2065F
Split-complement 1#5FB206
Split-complement 2#06B259
Triadic 1#B2AF06
Triadic 2#06B2AF
Tetradic#B25906

RGB percentages

Red68.6%
Green2.4%
Blue69.8%

CMYK percentages

Cyan1.7%
Magenta96.6%
Yellow0.0%
Key (black)30.2%

Color previews

#af06b2 text on a black background

contrast 3.49:1

Card sample

#af06b2 text on a white background

contrast 6.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af06b2

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.

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

#af06b2, answered

What color is #af06b2?

#af06b2 is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 6.6). It sits at 299° on the hue wheel with 94% saturation and 36% lightness, which reads as neutral.

What is the RGB value of #af06b2?

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

Is #af06b2 a light or a dark color?

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

Should I use black or white text on #af06b2?

White. It scores 6.01:1 against #af06b2, versus 3.49:1 for black — AA at any size.

What is the complementary color of #af06b2?

#09B206 sits directly opposite on the wheel. Softer options are the split-complements #5FB206 and #06B259, which give the same contrast with far less vibration.

What colors go well with #af06b2?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #37CA02 as an accent and #79047B for hover and pressed states. For a palette, the analogous pair #5906B2 and #B2065F stays calm, while #09B206 is the loudest partner.

What is #af06b2 in CMYK for printing?

cmyk(2%, 97%, 0%, 30%). 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 #af06b2 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 #B20676; nudged cooler, #7104B4.

Work with #af06b2 in the Color Lab