Skip to content

#af3c9b

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

RGB
175, 60, 155
HSL
310°, 49%, 46%
CMYK
0, 66, 11, 31
Luminance
0.1471

At a glance

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

Hex
#af3c9b
Hue
310°
magenta / pink
Saturation
49%
vivid
Lightness
46%
balanced
Brightness
69%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1471
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.33:1
Closest name
Medium Violet Red
ΔE2000 7.1
Where it sits
Hue310° of 360°
Saturation49%
Lightness46%
Temperature
Warm ← → Cool44% 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#af3c9b
RGBrgb(175, 60, 155)
HSLhsl(310, 49%, 46%)
CMYKcmyk(0%, 66%, 11%, 31%)
LABlab(45.2 57.3 -28.1)
LCHlch(45.2 63.8 333.9)
OKLCHoklch(0.552 0.184 335.4)
Decimal11484315
Display P3color(display-p3 0.686 0.235 0.608)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3c9b on white: 5.33:1
AA ✓ pass · AA-large · AAA
Aa
#af3c9b on black: 3.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3C609E
deuteranopia · #627198
tritanopia · #B74366

Color scale — 50 to 950

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

#FAF4F9
#F6EAF4
#ECD0E7
#E2ABD9
#D482C6
#C658B3
#af3c9b
#983487
#7A2A6C
#59224F
#371531
Base = 600Lightest = 50 · #FAF4F9Darkest = 950 · #371531
:root {
  --brand-50: #FAF4F9;
  --brand-100: #F6EAF4;
  --brand-200: #ECD0E7;
  --brand-300: #E2ABD9;
  --brand-400: #D482C6;
  --brand-500: #C658B3;
  --brand-600: #af3c9b;
  --brand-700: #983487;
  --brand-800: #7A2A6C;
  --brand-900: #59224F;
  --brand-950: #371531;
  --brand: #af3c9b;
  --brand-ink: #ffffff;
}

Colors that work with #af3c9b

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#FAF4F9
Tinted page background
Border#EAC2E3
Hairlines and dividers
Muted text#9B4B8D
Captions on the surface
Accent#389C30
Second voice, not a rival
Dark variant#5F2154
Hover, pressed, headers
Light variant#F8ECF6
Selected rows, tints
Dark surface#241422
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 #af3c9b

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
  • 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#3CAF50
Analogous left#893CAF
Analogous right#AF3C62
Split-complement 1#62AF3C
Split-complement 2#3CAF89
Triadic 1#9BAF3C
Triadic 2#3C9BAF
Tetradic#AF893C

RGB percentages

Red68.6%
Green23.5%
Blue60.8%

CMYK percentages

Cyan0.0%
Magenta65.7%
Yellow11.4%
Key (black)31.4%

Color previews

#af3c9b text on a black background

contrast 3.94:1

Card sample

#af3c9b text on a white background

contrast 5.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3c9b

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.

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

#af3c9b, answered

What color is #af3c9b?

#af3c9b is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7.1). It sits at 310° on the hue wheel with 49% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #af3c9b?

rgb(175, 60, 155) — 175 red, 60 green and 155 blue out of 255, or 68.6% / 23.5% / 60.8% by channel.

Is #af3c9b a light or a dark color?

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

Should I use black or white text on #af3c9b?

White. It scores 5.33:1 against #af3c9b, versus 3.94:1 for black — AA at any size.

What is the complementary color of #af3c9b?

#3CAF50 sits directly opposite on the wheel. Softer options are the split-complements #62AF3C and #3CAF89, which give the same contrast with far less vibration.

What colors go well with #af3c9b?

For interface work: #FAF4F9 as the surface, #EAC2E3 for borders, #9B4B8D for secondary text, #389C30 as an accent and #5F2154 for hover and pressed states. For a palette, the analogous pair #893CAF and #AF3C62 stays calm, while #3CAF50 is the loudest partner.

What is #af3c9b in CMYK for printing?

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

Is #af3c9b warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF3C71; nudged cooler, #9A3AB1.

Work with #af3c9b in the Color Lab