Skip to content

#af5995

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

RGB
175, 89, 149
HSL
318°, 35%, 52%
CMYK
0, 49, 15, 31
Luminance
0.1843

At a glance

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

Hex
#af5995
Hue
318°
magenta / pink
Saturation
35%
soft
Lightness
52%
balanced
Brightness
69%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1843
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.69:1
Closest name
Medium Violet Red
ΔE2000 9.8
Where it sits
Hue318° of 360°
Saturation35%
Lightness52%
Temperature
Warm ← → Cool40% 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#af5995
RGBrgb(175, 89, 149)
HSLhsl(318, 35%, 52%)
CMYKcmyk(0%, 49%, 15%, 31%)
LABlab(50.0 42.8 -17.2)
LCHlch(50.0 46.1 338.2)
OKLCHoklch(0.586 0.134 340.0)
Decimal11491733
Display P3color(display-p3 0.686 0.349 0.584)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5995 on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#af5995 on black: 4.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5D6F97
deuteranopia · #747C93
tritanopia · #B85B70

Color scale — 50 to 950

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

#F9F5F8
#F4ECF1
#E8D4E2
#DBB3CF
#C88DB7
#B6689E
#af5995
#8A4274
#6E355D
#512945
#331A2B
Base = 600Lightest = 50 · #F9F5F8Darkest = 950 · #331A2B
:root {
  --brand-50: #F9F5F8;
  --brand-100: #F4ECF1;
  --brand-200: #E8D4E2;
  --brand-300: #DBB3CF;
  --brand-400: #C88DB7;
  --brand-500: #B6689E;
  --brand-600: #af5995;
  --brand-700: #8A4274;
  --brand-800: #6E355D;
  --brand-900: #512945;
  --brand-950: #331A2B;
  --brand: #af5995;
  --brand-ink: #000000;
}

Colors that work with #af5995

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#E4C8DC
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#3E8E42
Second voice, not a rival
Dark variant#562949
Hover, pressed, headers
Light variant#F7EEF4
Selected rows, tints
Dark surface#24141F
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 #af5995

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#59AF73
Analogous left#9E59AF
Analogous right#AF596A
Split-complement 1#6AAF59
Split-complement 2#59AF9E
Triadic 1#95AF59
Triadic 2#5995AF
Tetradic#AF9E59

RGB percentages

Red68.6%
Green34.9%
Blue58.4%

CMYK percentages

Cyan0.0%
Magenta49.1%
Yellow14.9%
Key (black)31.4%

Color previews

#af5995 text on a black background

contrast 4.69:1

Card sample

#af5995 text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5995

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.

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

#af5995, answered

What color is #af5995?

#af5995 is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 9.8). It sits at 318° on the hue wheel with 35% saturation and 52% lightness, which reads as warm.

What is the RGB value of #af5995?

rgb(175, 89, 149) — 175 red, 89 green and 149 blue out of 255, or 68.6% / 34.9% / 58.4% by channel.

Is #af5995 a light or a dark color?

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

Should I use black or white text on #af5995?

Black. It scores 4.69:1 against #af5995, versus 4.48:1 for white — AA at any size.

What is the complementary color of #af5995?

#59AF73 sits directly opposite on the wheel. Softer options are the split-complements #6AAF59 and #59AF9E, which give the same contrast with far less vibration.

What colors go well with #af5995?

For interface work: #FAF5F8 as the surface, #E4C8DC for borders, #9B4B83 for secondary text, #3E8E42 as an accent and #562949 for hover and pressed states. For a palette, the analogous pair #9E59AF and #AF596A stays calm, while #59AF73 is the loudest partner.

What is #af5995 in CMYK for printing?

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

Is #af5995 warm or cool?

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

Work with #af5995 in the Color Lab