Skip to content

#af5f8a

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

RGB
175, 95, 138
HSL
328°, 33%, 53%
CMYK
0, 46, 21, 31
Luminance
0.1913

At a glance

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

Hex
#af5f8a
Hue
328°
magenta / pink
Saturation
33%
soft
Lightness
53%
balanced
Brightness
69%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1913
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.83:1
Closest name
Pale Violet Red
ΔE2000 10.9
Where it sits
Hue328° of 360°
Saturation33%
Lightness53%
Temperature
Warm ← → Cool35% 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#af5f8a
RGBrgb(175, 95, 138)
HSLhsl(328, 33%, 53%)
CMYKcmyk(0%, 46%, 21%, 31%)
LABlab(50.9 37.9 -9.4)
LCHlch(50.9 39.1 346.1)
OKLCHoklch(0.591 0.116 347.8)
Decimal11493258
Display P3color(display-p3 0.686 0.373 0.541)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5f8a on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#af5f8a on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #66718B
deuteranopia · #7B7E88
tritanopia · #B95D6F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5f8a 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
#F4ECF0
#E8D4DF
#DAB4C8
#C78FAD
#af5f8a
#A3527D
#884468
#6D3654
#502A3F
#321B27
Base = 500Lightest = 50 · #F9F5F7Darkest = 950 · #321B27
:root {
  --brand-50: #F9F5F7;
  --brand-100: #F4ECF0;
  --brand-200: #E8D4DF;
  --brand-300: #DAB4C8;
  --brand-400: #C78FAD;
  --brand-500: #af5f8a;
  --brand-600: #A3527D;
  --brand-700: #884468;
  --brand-800: #6D3654;
  --brand-900: #502A3F;
  --brand-950: #321B27;
  --brand: #af5f8a;
  --brand-ink: #000000;
}

Colors that work with #af5f8a

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#FAF5F8
Tinted page background
Border#E4C9D7
Hairlines and dividers
Muted text#994D76
Captions on the surface
Accent#408C50
Second voice, not a rival
Dark variant#552B41
Hover, pressed, headers
Light variant#F6EEF3
Selected rows, tints
Dark surface#24141D
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 #af5f8a

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#5FAF84
Analogous left#AC5FAF
Analogous right#AF5F62
Split-complement 1#62AF5F
Split-complement 2#5FAFAC
Triadic 1#8AAF5F
Triadic 2#5F8AAF
Tetradic#AFAC5F

RGB percentages

Red68.6%
Green37.3%
Blue54.1%

CMYK percentages

Cyan0.0%
Magenta45.7%
Yellow21.1%
Key (black)31.4%

Color previews

#af5f8a text on a black background

contrast 4.83:1

Card sample

#af5f8a text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5f8a

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.

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

#af5f8a, answered

What color is #af5f8a?

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

What is the RGB value of #af5f8a?

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

Is #af5f8a a light or a dark color?

It is a mid-tone. Relative luminance is 0.1913 and perceived brightness is 51%, so black text on it reaches 4.83:1.

Should I use black or white text on #af5f8a?

Black. It scores 4.83:1 against #af5f8a, versus 4.35:1 for white — AA at any size.

What is the complementary color of #af5f8a?

#5FAF84 sits directly opposite on the wheel. Softer options are the split-complements #62AF5F and #5FAFAC, which give the same contrast with far less vibration.

What colors go well with #af5f8a?

For interface work: #FAF5F8 as the surface, #E4C9D7 for borders, #994D76 for secondary text, #408C50 as an accent and #552B41 for hover and pressed states. For a palette, the analogous pair #AC5FAF and #AF5F62 stays calm, while #5FAF84 is the loudest partner.

What is #af5f8a in CMYK for printing?

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

Is #af5f8a warm or cool?

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

Work with #af5f8a in the Color Lab