Skip to content

#af4e9b

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

RGB
175, 78, 155
HSL
312°, 38%, 50%
CMYK
0, 55, 11, 31
Luminance
0.1693

At a glance

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

Hex
#af4e9b
Hue
312°
magenta / pink
Saturation
38%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1693
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
4.79:1
Closest name
Medium Violet Red
ΔE2000 8.4
Where it sits
Hue312° of 360°
Saturation38%
Lightness50%
Temperature
Warm ← → Cool43% 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#af4e9b
RGBrgb(175, 78, 155)
HSLhsl(312, 38%, 50%)
CMYKcmyk(0%, 55%, 11%, 31%)
LABlab(48.2 49.3 -23.5)
LCHlch(48.2 54.6 334.5)
OKLCHoklch(0.574 0.157 336.0)
Decimal11488923
Display P3color(display-p3 0.686 0.306 0.608)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4e9b on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#af4e9b on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4F699D
deuteranopia · #6B7898
tritanopia · #B7536D

Color scale — 50 to 950

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

#FAF5F9
#F4EBF2
#E9D3E4
#DCB1D4
#CB8BBE
#BA64A8
#af4e9b
#8D3F7D
#713264
#53284A
#34192E
Base = 600Lightest = 50 · #FAF5F9Darkest = 950 · #34192E
:root {
  --brand-50: #FAF5F9;
  --brand-100: #F4EBF2;
  --brand-200: #E9D3E4;
  --brand-300: #DCB1D4;
  --brand-400: #CB8BBE;
  --brand-500: #BA64A8;
  --brand-600: #af4e9b;
  --brand-700: #8D3F7D;
  --brand-800: #713264;
  --brand-900: #53284A;
  --brand-950: #34192E;
  --brand: #af4e9b;
  --brand-ink: #ffffff;
}

Colors that work with #af4e9b

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#E6C7DF
Hairlines and dividers
Muted text#9B4B8A
Captions on the surface
Accent#3F913B
Second voice, not a rival
Dark variant#58274E
Hover, pressed, headers
Light variant#F7EDF5
Selected rows, tints
Dark surface#241421
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 #af4e9b

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#4EAF62
Analogous left#934EAF
Analogous right#AF4E6A
Split-complement 1#6AAF4E
Split-complement 2#4EAF93
Triadic 1#9BAF4E
Triadic 2#4E9BAF
Tetradic#AF934E

RGB percentages

Red68.6%
Green30.6%
Blue60.8%

CMYK percentages

Cyan0.0%
Magenta55.4%
Yellow11.4%
Key (black)31.4%

Color previews

#af4e9b text on a black background

contrast 4.39:1

Card sample

#af4e9b text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4e9b

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.

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

#af4e9b, answered

What color is #af4e9b?

#af4e9b is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 8.4). It sits at 312° on the hue wheel with 38% saturation and 50% lightness, which reads as neutral.

What is the RGB value of #af4e9b?

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

Is #af4e9b a light or a dark color?

It is a dark color. Relative luminance is 0.1693 and perceived brightness is 49%, so white text on it reaches 4.79:1.

Should I use black or white text on #af4e9b?

White. It scores 4.79:1 against #af4e9b, versus 4.39:1 for black — AA at any size.

What is the complementary color of #af4e9b?

#4EAF62 sits directly opposite on the wheel. Softer options are the split-complements #6AAF4E and #4EAF93, which give the same contrast with far less vibration.

What colors go well with #af4e9b?

For interface work: #FAF4F9 as the surface, #E6C7DF for borders, #9B4B8A for secondary text, #3F913B as an accent and #58274E for hover and pressed states. For a palette, the analogous pair #934EAF and #AF4E6A stays calm, while #4EAF62 is the loudest partner.

What is #af4e9b in CMYK for printing?

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

Is #af4e9b warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF4E77; nudged cooler, #A14CB1.

Work with #af4e9b in the Color Lab