Skip to content

#af2eb3

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

RGB
175, 46, 179
HSL
298°, 59%, 44%
CMYK
2, 74, 0, 30
Luminance
0.1432

At a glance

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

Hex
#af2eb3
Hue
298°
magenta / pink
Saturation
59%
vivid
Lightness
44%
dark
Brightness
70%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1432
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.43:1
Closest name
Dark Orchid
ΔE2000 6.5
Where it sits
Hue298° of 360°
Saturation59%
Lightness44%
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#af2eb3
RGBrgb(175, 46, 179)
HSLhsl(298, 59%, 44%)
CMYKcmyk(2%, 74%, 0%, 30%)
LABlab(44.7 66.2 -43.2)
LCHlch(44.7 79.1 326.9)
OKLCHoklch(0.552 0.219 326.7)
Decimal11480755
Display P3color(display-p3 0.686 0.180 0.702)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2eb3 on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#af2eb3 on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #065FB7
deuteranopia · #4F6FB0
tritanopia · #B4446F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2eb3 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4FB
#F6E9F7
#EECDEF
#E6A6E8
#DA79DD
#CD4CD1
#af2eb3
#9F2AA2
#7F2182
#5C1C5E
#3A113B
Base = 600Lightest = 50 · #FBF4FBDarkest = 950 · #3A113B
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F6E9F7;
  --brand-200: #EECDEF;
  --brand-300: #E6A6E8;
  --brand-400: #DA79DD;
  --brand-500: #CD4CD1;
  --brand-600: #af2eb3;
  --brand-700: #9F2AA2;
  --brand-800: #7F2182;
  --brand-900: #5C1C5E;
  --brand-950: #3A113B;
  --brand: #af2eb3;
  --brand-ink: #ffffff;
}

Colors that work with #af2eb3

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#EBC0ED
Hairlines and dividers
Muted text#994B9B
Captions on the surface
Accent#4AA725
Second voice, not a rival
Dark variant#631A65
Hover, pressed, headers
Light variant#F9EBFA
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 #af2eb3

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#32B32E
Analogous left#6C2EB3
Analogous right#B32E74
Split-complement 1#74B32E
Split-complement 2#2EB36C
Triadic 1#B3AF2E
Triadic 2#2EB3AF
Tetradic#B36C2E

RGB percentages

Red68.6%
Green18.0%
Blue70.2%

CMYK percentages

Cyan2.2%
Magenta74.3%
Yellow0.0%
Key (black)29.8%

Color previews

#af2eb3 text on a black background

contrast 3.86:1

Card sample

#af2eb3 text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2eb3

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.

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

#af2eb3, answered

What color is #af2eb3?

#af2eb3 is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 6.5). It sits at 298° on the hue wheel with 59% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #af2eb3?

rgb(175, 46, 179) — 175 red, 46 green and 179 blue out of 255, or 68.6% / 18% / 70.2% by channel.

Is #af2eb3 a light or a dark color?

It is a dark color. Relative luminance is 0.1432 and perceived brightness is 46%, so white text on it reaches 5.43:1.

Should I use black or white text on #af2eb3?

White. It scores 5.43:1 against #af2eb3, versus 3.86:1 for black — AA at any size.

What is the complementary color of #af2eb3?

#32B32E sits directly opposite on the wheel. Softer options are the split-complements #74B32E and #2EB36C, which give the same contrast with far less vibration.

What colors go well with #af2eb3?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #994B9B for secondary text, #4AA725 as an accent and #631A65 for hover and pressed states. For a palette, the analogous pair #6C2EB3 and #B32E74 stays calm, while #32B32E is the loudest partner.

What is #af2eb3 in CMYK for printing?

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

Is #af2eb3 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 #B32E86; nudged cooler, #7F2CB5.

Work with #af2eb3 in the Color Lab