Skip to content

#af28bc

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

RGB
175, 40, 188
HSL
295°, 65%, 45%
CMYK
7, 79, 0, 26
Luminance
0.1426

At a glance

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

Hex
#af28bc
Hue
295°
magenta / pink
Saturation
65%
vivid
Lightness
45%
dark
Brightness
74%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1426
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.45:1
Closest name
Dark Orchid
ΔE2000 5.2
Where it sits
Hue295° of 360°
Saturation65%
Lightness45%
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#af28bc
RGBrgb(175, 40, 188)
HSLhsl(295, 65%, 45%)
CMYKcmyk(7%, 79%, 0%, 26%)
LABlab(44.6 69.5 -48.6)
LCHlch(44.6 84.8 325.0)
OKLCHoklch(0.553 0.231 324.1)
Decimal11479228
Display P3color(display-p3 0.686 0.157 0.737)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af28bc on white: 5.45:1
AA ✓ pass · AA-large · AAA
Aa
#af28bc on black: 3.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005FC0
deuteranopia · #466FB9
tritanopia · #B24572

Color scale — 50 to 950

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

#FBF3FB
#F6E8F7
#EDCBF1
#E5A2EB
#D874E1
#CB46D8
#af28bc
#9D24A8
#7D1D87
#5B1962
#390F3D
Base = 600Lightest = 50 · #FBF3FBDarkest = 950 · #390F3D
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F6E8F7;
  --brand-200: #EDCBF1;
  --brand-300: #E5A2EB;
  --brand-400: #D874E1;
  --brand-500: #CB46D8;
  --brand-600: #af28bc;
  --brand-700: #9D24A8;
  --brand-800: #7D1D87;
  --brand-900: #5B1962;
  --brand-950: #390F3D;
  --brand: #af28bc;
  --brand-ink: #ffffff;
}

Colors that work with #af28bc

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#944B9B
Captions on the surface
Accent#50AD1F
Second voice, not a rival
Dark variant#621669
Hover, pressed, headers
Light variant#F9EAFB
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 #af28bc

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#35BC28
Analogous left#6528BC
Analogous right#BC287F
Split-complement 1#7FBC28
Split-complement 2#28BC65
Triadic 1#BCAF28
Triadic 2#28BCAF
Tetradic#BC6528

RGB percentages

Red68.6%
Green15.7%
Blue73.7%

CMYK percentages

Cyan6.9%
Magenta78.7%
Yellow0.0%
Key (black)26.3%

Color previews

#af28bc text on a black background

contrast 3.85:1

Card sample

#af28bc text on a white background

contrast 5.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af28bc

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.

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

#af28bc, answered

What color is #af28bc?

#af28bc is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 5.2). It sits at 295° on the hue wheel with 65% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #af28bc?

rgb(175, 40, 188) — 175 red, 40 green and 188 blue out of 255, or 68.6% / 15.7% / 73.7% by channel.

Is #af28bc a light or a dark color?

It is a dark color. Relative luminance is 0.1426 and perceived brightness is 47%, so white text on it reaches 5.45:1.

Should I use black or white text on #af28bc?

White. It scores 5.45:1 against #af28bc, versus 3.85:1 for black — AA at any size.

What is the complementary color of #af28bc?

#35BC28 sits directly opposite on the wheel. Softer options are the split-complements #7FBC28 and #28BC65, which give the same contrast with far less vibration.

What colors go well with #af28bc?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #50AD1F as an accent and #621669 for hover and pressed states. For a palette, the analogous pair #6528BC and #BC287F stays calm, while #35BC28 is the loudest partner.

What is #af28bc in CMYK for printing?

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

Is #af28bc 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 #BC2893; nudged cooler, #7926BE.

Work with #af28bc in the Color Lab