Skip to content

#af2e65

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

RGB
175, 46, 101
HSL
334°, 58%, 43%
CMYK
0, 74, 42, 31
Luminance
0.1201

At a glance

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

Hex
#af2e65
Hue
334°
magenta / pink
Saturation
58%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1201
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.17:1
Closest name
Medium Violet Red
ΔE2000 7.5
Where it sits
Hue334° of 360°
Saturation58%
Lightness43%
Temperature
Warm ← → Cool31% 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#af2e65
RGBrgb(175, 46, 101)
HSLhsl(334, 58%, 43%)
CMYKcmyk(0%, 74%, 42%, 31%)
LABlab(41.2 55.6 -1.1)
LCHlch(41.2 55.6 358.9)
OKLCHoklch(0.516 0.171 359.3)
Decimal11480677
Display P3color(display-p3 0.686 0.180 0.396)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2e65 on white: 6.17:1
AA ✓ pass · AA-large · AAA
Aa
#af2e65 on black: 3.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #495266
deuteranopia · #6C6A62
tritanopia · #BE1B46

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2e65 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4F7
#F7E9EF
#EFCDDB
#E8A6C2
#DC7AA4
#D04D85
#C23370
#af2e65
#81224B
#5E1C38
#3B1223
Base = 700Lightest = 50 · #FBF4F7Darkest = 950 · #3B1223
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F7E9EF;
  --brand-200: #EFCDDB;
  --brand-300: #E8A6C2;
  --brand-400: #DC7AA4;
  --brand-500: #D04D85;
  --brand-600: #C23370;
  --brand-700: #af2e65;
  --brand-800: #81224B;
  --brand-900: #5E1C38;
  --brand-950: #3B1223;
  --brand: #af2e65;
  --brand-ink: #ffffff;
}

Colors that work with #af2e65

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#FAF4F7
Tinted page background
Border#EDC0D3
Hairlines and dividers
Muted text#9B4B6D
Captions on the surface
Accent#27A54F
Second voice, not a rival
Dark variant#651B3A
Hover, pressed, headers
Light variant#FAEBF1
Selected rows, tints
Dark surface#24141B
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 #af2e65

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#2EAF78
Analogous left#AF2EA5
Analogous right#AF372E
Split-complement 1#2EAF37
Split-complement 2#2EA5AF
Triadic 1#65AF2E
Triadic 2#2E65AF
Tetradic#A5AF2E

RGB percentages

Red68.6%
Green18.0%
Blue39.6%

CMYK percentages

Cyan0.0%
Magenta73.7%
Yellow42.3%
Key (black)31.4%

Color previews

#af2e65 text on a black background

contrast 3.40:1

Card sample

#af2e65 text on a white background

contrast 6.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2e65

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.

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

#af2e65, answered

What color is #af2e65?

#af2e65 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7.5). It sits at 334° on the hue wheel with 58% saturation and 43% lightness, which reads as warm.

What is the RGB value of #af2e65?

rgb(175, 46, 101) — 175 red, 46 green and 101 blue out of 255, or 68.6% / 18% / 39.6% by channel.

Is #af2e65 a light or a dark color?

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

Should I use black or white text on #af2e65?

White. It scores 6.17:1 against #af2e65, versus 3.40:1 for black — AA at any size.

What is the complementary color of #af2e65?

#2EAF78 sits directly opposite on the wheel. Softer options are the split-complements #2EAF37 and #2EA5AF, which give the same contrast with far less vibration.

What colors go well with #af2e65?

For interface work: #FAF4F7 as the surface, #EDC0D3 for borders, #9B4B6D for secondary text, #27A54F as an accent and #651B3A for hover and pressed states. For a palette, the analogous pair #AF2EA5 and #AF372E stays calm, while #2EAF78 is the loudest partner.

What is #af2e65 in CMYK for printing?

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

Is #af2e65 warm or cool?

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

Work with #af2e65 in the Color Lab