Skip to content

#af4bc1

a balanced, vivid magenta / pink · neutral · closest name: Medium Orchid

RGB
175, 75, 193
HSL
291°, 49%, 53%
CMYK
9, 61, 0, 24
Luminance
0.1800

At a glance

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

Hex
#af4bc1
Hue
291°
magenta / pink
Saturation
49%
vivid
Lightness
53%
balanced
Brightness
76%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1800
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.60:1
Closest name
Medium Orchid
ΔE2000 4.3
Where it sits
Hue291° of 360°
Saturation49%
Lightness53%
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#af4bc1
RGBrgb(175, 75, 193)
HSLhsl(291, 49%, 53%)
CMYKcmyk(9%, 61%, 0%, 24%)
LABlab(49.5 57.5 -43.8)
LCHlch(49.5 72.2 322.7)
OKLCHoklch(0.589 0.195 321.3)
Decimal11488193
Display P3color(display-p3 0.686 0.294 0.757)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4bc1 on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#af4bc1 on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #306EC5
deuteranopia · #5879BE
tritanopia · #B15D7F

Color scale — 50 to 950

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

#F9F4FA
#F4EAF6
#E8D0EC
#DAACE2
#C782D4
#af4bc1
#A43FB6
#893498
#6D2A79
#502259
#321537
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #321537
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F4EAF6;
  --brand-200: #E8D0EC;
  --brand-300: #DAACE2;
  --brand-400: #C782D4;
  --brand-500: #af4bc1;
  --brand-600: #A43FB6;
  --brand-700: #893498;
  --brand-800: #6D2A79;
  --brand-900: #502259;
  --brand-950: #321537;
  --brand: #af4bc1;
  --brand-ink: #000000;
}

Colors that work with #af4bc1

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E4C2EA
Hairlines and dividers
Muted text#8F4B9B
Captions on the surface
Accent#5C9C30
Second voice, not a rival
Dark variant#55215F
Hover, pressed, headers
Light variant#F7ECF8
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 #af4bc1

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#5DC14B
Analogous left#744BC1
Analogous right#C14B98
Split-complement 1#98C14B
Split-complement 2#4BC174
Triadic 1#C1AF4B
Triadic 2#4BC1AF
Tetradic#C1744B

RGB percentages

Red68.6%
Green29.4%
Blue75.7%

CMYK percentages

Cyan9.3%
Magenta61.1%
Yellow0.0%
Key (black)24.3%

Color previews

#af4bc1 text on a black background

contrast 4.60:1

Card sample

#af4bc1 text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4bc1

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.

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

#af4bc1, answered

What color is #af4bc1?

#af4bc1 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 4.3). It sits at 291° on the hue wheel with 49% saturation and 53% lightness, which reads as neutral.

What is the RGB value of #af4bc1?

rgb(175, 75, 193) — 175 red, 75 green and 193 blue out of 255, or 68.6% / 29.4% / 75.7% by channel.

Is #af4bc1 a light or a dark color?

It is a dark color. Relative luminance is 0.1800 and perceived brightness is 51%, so black text on it reaches 4.60:1.

Should I use black or white text on #af4bc1?

Black. It scores 4.60:1 against #af4bc1, versus 4.57:1 for white — AA at any size.

What is the complementary color of #af4bc1?

#5DC14B sits directly opposite on the wheel. Softer options are the split-complements #98C14B and #4BC174, which give the same contrast with far less vibration.

What colors go well with #af4bc1?

For interface work: #F9F4FA as the surface, #E4C2EA for borders, #8F4B9B for secondary text, #5C9C30 as an accent and #55215F for hover and pressed states. For a palette, the analogous pair #744BC1 and #C14B98 stays calm, while #5DC14B is the loudest partner.

What is #af4bc1 in CMYK for printing?

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

Is #af4bc1 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 #C14BA8; nudged cooler, #8348C3.

Work with #af4bc1 in the Color Lab