Skip to content

#af5f7d

a balanced, soft magenta / pink · warm · closest name: Pale Violet Red

RGB
175, 95, 125
HSL
338°, 33%, 53%
CMYK
0, 46, 29, 31
Luminance
0.1878

At a glance

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

Hex
#af5f7d
Hue
338°
magenta / pink
Saturation
33%
soft
Lightness
53%
balanced
Brightness
69%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1878
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.76:1
Closest name
Pale Violet Red
ΔE2000 10.2
Where it sits
Hue338° of 360°
Saturation33%
Lightness53%
Temperature
Warm ← → Cool30% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af5f7d
RGBrgb(175, 95, 125)
HSLhsl(338, 33%, 53%)
CMYKcmyk(0%, 46%, 29%, 31%)
LABlab(50.4 36.0 -2.3)
LCHlch(50.4 36.1 356.4)
OKLCHoklch(0.587 0.109 357.1)
Decimal11493245
Display P3color(display-p3 0.686 0.373 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5f7d on white: 4.42:1
AA ✗ fail · AA-large · AAA
Aa
#af5f7d on black: 4.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A6F7E
deuteranopia · #7E7D7B
tritanopia · #BA5A6A

Color scale — 50 to 950

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

#F9F5F7
#F4ECEF
#E8D4DB
#DAB4C2
#C78FA4
#af5f7d
#A35270
#88445E
#6D364B
#502A39
#321B23
Base = 500Lightest = 50 · #F9F5F7Darkest = 950 · #321B23
:root {
  --brand-50: #F9F5F7;
  --brand-100: #F4ECEF;
  --brand-200: #E8D4DB;
  --brand-300: #DAB4C2;
  --brand-400: #C78FA4;
  --brand-500: #af5f7d;
  --brand-600: #A35270;
  --brand-700: #88445E;
  --brand-800: #6D364B;
  --brand-900: #502A39;
  --brand-950: #321B23;
  --brand: #af5f7d;
  --brand-ink: #000000;
}

Colors that work with #af5f7d

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#FAF5F7
Tinted page background
Border#E4C9D3
Hairlines and dividers
Muted text#994D69
Captions on the surface
Accent#408C5D
Second voice, not a rival
Dark variant#552B3A
Hover, pressed, headers
Light variant#F6EEF1
Selected rows, tints
Dark surface#24141A
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 #af5f7d

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#5FAF91
Analogous left#AF5FA5
Analogous right#AF695F
Split-complement 1#5FAF69
Split-complement 2#5FA5AF
Triadic 1#7DAF5F
Triadic 2#5F7DAF
Tetradic#A5AF5F

RGB percentages

Red68.6%
Green37.3%
Blue49.0%

CMYK percentages

Cyan0.0%
Magenta45.7%
Yellow28.6%
Key (black)31.4%

Color previews

#af5f7d text on a black background

contrast 4.76:1

Card sample

#af5f7d text on a white background

contrast 4.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5f7d

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.

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

#af5f7d, answered

What color is #af5f7d?

#af5f7d is a balanced soft magenta / pink, closest to Pale Violet Red (ΔE2000 10.2). It sits at 338° on the hue wheel with 33% saturation and 53% lightness, which reads as warm.

What is the RGB value of #af5f7d?

rgb(175, 95, 125) — 175 red, 95 green and 125 blue out of 255, or 68.6% / 37.3% / 49% by channel.

Is #af5f7d a light or a dark color?

It is a mid-tone. Relative luminance is 0.1878 and perceived brightness is 50%, so black text on it reaches 4.76:1.

Should I use black or white text on #af5f7d?

Black. It scores 4.76:1 against #af5f7d, versus 4.42:1 for white — AA at any size.

What is the complementary color of #af5f7d?

#5FAF91 sits directly opposite on the wheel. Softer options are the split-complements #5FAF69 and #5FA5AF, which give the same contrast with far less vibration.

What colors go well with #af5f7d?

For interface work: #FAF5F7 as the surface, #E4C9D3 for borders, #994D69 for secondary text, #408C5D as an accent and #552B3A for hover and pressed states. For a palette, the analogous pair #AF5FA5 and #AF695F stays calm, while #5FAF91 is the loudest partner.

What is #af5f7d in CMYK for printing?

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

Is #af5f7d warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF5F60; nudged cooler, #B15C9B.

Work with #af5f7d in the Color Lab