Skip to content

#af3257

a dark, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
175, 50, 87
HSL
342°, 56%, 44%
CMYK
0, 71, 50, 31
Luminance
0.1208

At a glance

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

Hex
#af3257
Hue
342°
magenta / pink
Saturation
56%
vivid
Lightness
44%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1208
WCAG relative
Temperature
Warm
27/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.15:1
Closest name
Medium Violet Red
ΔE2000 11.4
Where it sits
Hue342° of 360°
Saturation56%
Lightness44%
Temperature
Warm ← → Cool27% 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#af3257
RGBrgb(175, 50, 87)
HSLhsl(342, 56%, 44%)
CMYKcmyk(0%, 71%, 50%, 31%)
LABlab(41.4 52.9 7.8)
LCHlch(41.4 53.4 8.4)
OKLCHoklch(0.515 0.162 7.2)
Decimal11481687
Display P3color(display-p3 0.686 0.196 0.341)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3257 on white: 6.15:1
AA ✓ pass · AA-large · AAA
Aa
#af3257 on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #505258
deuteranopia · #706B54
tritanopia · #BF1A41

Color scale — 50 to 950

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

#FBF4F6
#F6E9ED
#EECED7
#E6A8BA
#DA7C98
#CD5075
#af3257
#9F2D4F
#7F243F
#5D1E30
#3A131E
Base = 600Lightest = 50 · #FBF4F6Darkest = 950 · #3A131E
:root {
  --brand-50: #FBF4F6;
  --brand-100: #F6E9ED;
  --brand-200: #EECED7;
  --brand-300: #E6A8BA;
  --brand-400: #DA7C98;
  --brand-500: #CD5075;
  --brand-600: #af3257;
  --brand-700: #9F2D4F;
  --brand-800: #7F243F;
  --brand-900: #5D1E30;
  --brand-950: #3A131E;
  --brand: #af3257;
  --brand-ink: #ffffff;
}

Colors that work with #af3257

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#FAF4F6
Tinted page background
Border#EDC0CD
Hairlines and dividers
Muted text#9B4B62
Captions on the surface
Accent#29A361
Second voice, not a rival
Dark variant#631C31
Hover, pressed, headers
Light variant#F9EBEF
Selected rows, tints
Dark surface#241419
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 #af3257

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#32AF8A
Analogous left#AF3296
Analogous right#AF4B32
Split-complement 1#32AF4B
Split-complement 2#3296AF
Triadic 1#57AF32
Triadic 2#3257AF
Tetradic#96AF32

RGB percentages

Red68.6%
Green19.6%
Blue34.1%

CMYK percentages

Cyan0.0%
Magenta71.4%
Yellow50.3%
Key (black)31.4%

Color previews

#af3257 text on a black background

contrast 3.42:1

Card sample

#af3257 text on a white background

contrast 6.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3257

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.

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

#af3257, answered

What color is #af3257?

#af3257 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 11.4). It sits at 342° on the hue wheel with 56% saturation and 44% lightness, which reads as warm.

What is the RGB value of #af3257?

rgb(175, 50, 87) — 175 red, 50 green and 87 blue out of 255, or 68.6% / 19.6% / 34.1% by channel.

Is #af3257 a light or a dark color?

It is a dark color. Relative luminance is 0.1208 and perceived brightness is 42%, so white text on it reaches 6.15:1.

Should I use black or white text on #af3257?

White. It scores 6.15:1 against #af3257, versus 3.42:1 for black — AA at any size.

What is the complementary color of #af3257?

#32AF8A sits directly opposite on the wheel. Softer options are the split-complements #32AF4B and #3296AF, which give the same contrast with far less vibration.

What colors go well with #af3257?

For interface work: #FAF4F6 as the surface, #EDC0CD for borders, #9B4B62 for secondary text, #29A361 as an accent and #631C31 for hover and pressed states. For a palette, the analogous pair #AF3296 and #AF4B32 stays calm, while #32AF8A is the loudest partner.

What is #af3257 in CMYK for printing?

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

Is #af3257 warm or cool?

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

Work with #af3257 in the Color Lab