Skip to content

#af03cf

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

RGB
175, 3, 207
HSL
291°, 97%, 41%
CMYK
16, 99, 0, 19
Luminance
0.1368

At a glance

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

Hex
#af03cf
Hue
291°
magenta / pink
Saturation
97%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1368
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.62:1
Closest name
Dark Orchid
ΔE2000 3.9
Where it sits
Hue291° of 360°
Saturation97%
Lightness41%
Temperature
Warm ← → Cool55% 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#af03cf
RGBrgb(175, 3, 207)
HSLhsl(291, 97%, 41%)
CMYKcmyk(16%, 99%, 0%, 19%)
LABlab(43.8 78.8 -61.0)
LCHlch(43.8 99.7 322.3)
OKLCHoklch(0.551 0.264 319.4)
Decimal11469775
Display P3color(display-p3 0.686 0.012 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af03cf on white: 5.62:1
AA ✓ pass · AA-large · AAA
Aa
#af03cf on black: 3.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005ED3
deuteranopia · #226CCB
tritanopia · #AF4579

Color scale — 50 to 950

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

#FCF1FD
#F8E4FC
#F2C1FB
#EC90FD
#E359FD
#DA22FC
#CC04F1
#af03cf
#8802A1
#630774
#3E0448
Base = 700Lightest = 50 · #FCF1FDDarkest = 950 · #3E0448
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F8E4FC;
  --brand-200: #F2C1FB;
  --brand-300: #EC90FD;
  --brand-400: #E359FD;
  --brand-500: #DA22FC;
  --brand-600: #CC04F1;
  --brand-700: #af03cf;
  --brand-800: #8802A1;
  --brand-900: #630774;
  --brand-950: #3E0448;
  --brand: #af03cf;
  --brand-ink: #ffffff;
}

Colors that work with #af03cf

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#F9F4FA
Tinted page background
Border#E6C0ED
Hairlines and dividers
Muted text#8E4B9B
Captions on the surface
Accent#53CC00
Second voice, not a rival
Dark variant#6A027E
Hover, pressed, headers
Light variant#FBE6FF
Selected rows, tints
Dark surface#221424
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 #af03cf

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#23CF03
Analogous left#4903CF
Analogous right#CF0389
Split-complement 1#89CF03
Split-complement 2#03CF49
Triadic 1#CFAF03
Triadic 2#03CFAF
Tetradic#CF4903

RGB percentages

Red68.6%
Green1.2%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta98.6%
Yellow0.0%
Key (black)18.8%

Color previews

#af03cf text on a black background

contrast 3.74:1

Card sample

#af03cf text on a white background

contrast 5.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af03cf

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.

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

#af03cf, answered

What color is #af03cf?

#af03cf is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 3.9). It sits at 291° on the hue wheel with 97% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #af03cf?

rgb(175, 3, 207) — 175 red, 3 green and 207 blue out of 255, or 68.6% / 1.2% / 81.2% by channel.

Is #af03cf a light or a dark color?

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

Should I use black or white text on #af03cf?

White. It scores 5.62:1 against #af03cf, versus 3.74:1 for black — AA at any size.

What is the complementary color of #af03cf?

#23CF03 sits directly opposite on the wheel. Softer options are the split-complements #89CF03 and #03CF49, which give the same contrast with far less vibration.

What colors go well with #af03cf?

For interface work: #F9F4FA as the surface, #E6C0ED for borders, #8E4B9B for secondary text, #53CC00 as an accent and #6A027E for hover and pressed states. For a palette, the analogous pair #4903CF and #CF0389 stays calm, while #23CF03 is the loudest partner.

What is #af03cf in CMYK for printing?

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

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF03A4; nudged cooler, #6401D1.

Work with #af03cf in the Color Lab