Skip to content

#af02cb

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

RGB
175, 2, 203
HSL
292°, 98%, 40%
CMYK
14, 99, 0, 20
Luminance
0.1347

At a glance

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

Hex
#af02cb
Hue
292°
magenta / pink
Saturation
98%
electric
Lightness
40%
dark
Brightness
80%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1347
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.69:1
Closest name
Dark Orchid
ΔE2000 4.1
Where it sits
Hue292° of 360°
Saturation98%
Lightness40%
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#af02cb
RGBrgb(175, 2, 203)
HSLhsl(292, 98%, 40%)
CMYKcmyk(14%, 99%, 0%, 20%)
LABlab(43.5 78.3 -59.2)
LCHlch(43.5 98.2 322.9)
OKLCHoklch(0.548 0.262 320.4)
Decimal11469515
Display P3color(display-p3 0.686 0.008 0.796)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af02cb on white: 5.69:1
AA ✓ pass · AA-large · AAA
Aa
#af02cb on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DCF
deuteranopia · #296CC7
tritanopia · #B04277

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af02cb 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
#F9E3FC
#F3C1FB
#EE90FE
#E658FD
#DE21FD
#D102F2
#af02cb
#8B02A2
#650674
#3F0449
Base = 700Lightest = 50 · #FCF1FDDarkest = 950 · #3F0449
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F9E3FC;
  --brand-200: #F3C1FB;
  --brand-300: #EE90FE;
  --brand-400: #E658FD;
  --brand-500: #DE21FD;
  --brand-600: #D102F2;
  --brand-700: #af02cb;
  --brand-800: #8B02A2;
  --brand-900: #650674;
  --brand-950: #3F0449;
  --brand: #af02cb;
  --brand-ink: #ffffff;
}

Colors that work with #af02cb

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#E6C0ED
Hairlines and dividers
Muted text#904B9B
Captions on the surface
Accent#50CC00
Second voice, not a rival
Dark variant#6D017E
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 #af02cb

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#1ECB02
Analogous left#4A02CB
Analogous right#CB0283
Split-complement 1#83CB02
Split-complement 2#02CB4A
Triadic 1#CBAF02
Triadic 2#02CBAF
Tetradic#CB4A02

RGB percentages

Red68.6%
Green0.8%
Blue79.6%

CMYK percentages

Cyan13.8%
Magenta99.0%
Yellow0.0%
Key (black)20.4%

Color previews

#af02cb text on a black background

contrast 3.69:1

Card sample

#af02cb text on a white background

contrast 5.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af02cb

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.

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

#af02cb, answered

What color is #af02cb?

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

What is the RGB value of #af02cb?

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

Is #af02cb a light or a dark color?

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

Should I use black or white text on #af02cb?

White. It scores 5.69:1 against #af02cb, versus 3.69:1 for black — AA at any size.

What is the complementary color of #af02cb?

#1ECB02 sits directly opposite on the wheel. Softer options are the split-complements #83CB02 and #02CB4A, which give the same contrast with far less vibration.

What colors go well with #af02cb?

For interface work: #FAF4FA as the surface, #E6C0ED for borders, #904B9B for secondary text, #50CC00 as an accent and #6D017E for hover and pressed states. For a palette, the analogous pair #4A02CB and #CB0283 stays calm, while #1ECB02 is the loudest partner.

What is #af02cb in CMYK for printing?

cmyk(14%, 99%, 0%, 20%). 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 #af02cb 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 #CB029D; nudged cooler, #6500CD.

Work with #af02cb in the Color Lab