Skip to content

#af2b6c

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

RGB
175, 43, 108
HSL
331°, 61%, 43%
CMYK
0, 75, 38, 31
Luminance
0.1192

At a glance

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

Hex
#af2b6c
Hue
331°
magenta / pink
Saturation
61%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1192
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.20:1
Closest name
Medium Violet Red
ΔE2000 5.9
Where it sits
Hue331° of 360°
Saturation61%
Lightness43%
Temperature
Warm ← → Cool33% 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#af2b6c
RGBrgb(175, 43, 108)
HSLhsl(331, 61%, 43%)
CMYKcmyk(0%, 75%, 38%, 31%)
LABlab(41.1 57.4 -5.7)
LCHlch(41.1 57.6 354.3)
OKLCHoklch(0.515 0.177 355.4)
Decimal11479916
Display P3color(display-p3 0.686 0.169 0.424)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2b6c on white: 6.20:1
AA ✓ pass · AA-large · AAA
Aa
#af2b6c on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #45516E
deuteranopia · #6A6A69
tritanopia · #BD1B48

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2b6c 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
#F7E8F0
#F0CCDE
#E9A5C6
#DE78AA
#D34B8E
#C53079
#af2b6c
#832051
#5F1B3D
#3C1126
Base = 700Lightest = 50 · #FBF4F7Darkest = 950 · #3C1126
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F7E8F0;
  --brand-200: #F0CCDE;
  --brand-300: #E9A5C6;
  --brand-400: #DE78AA;
  --brand-500: #D34B8E;
  --brand-600: #C53079;
  --brand-700: #af2b6c;
  --brand-800: #832051;
  --brand-900: #5F1B3D;
  --brand-950: #3C1126;
  --brand: #af2b6c;
  --brand-ink: #ffffff;
}

Colors that work with #af2b6c

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#EDC0D6
Hairlines and dividers
Muted text#9B4B72
Captions on the surface
Accent#25A746
Second voice, not a rival
Dark variant#66193F
Hover, pressed, headers
Light variant#FAEBF2
Selected rows, tints
Dark surface#24141C
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 #af2b6c

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#2BAF6E
Analogous left#AF2BAE
Analogous right#AF2C2B
Split-complement 1#2BAF2C
Split-complement 2#2BAEAF
Triadic 1#6CAF2B
Triadic 2#2B6CAF
Tetradic#AEAF2B

RGB percentages

Red68.6%
Green16.9%
Blue42.4%

CMYK percentages

Cyan0.0%
Magenta75.4%
Yellow38.3%
Key (black)31.4%

Color previews

#af2b6c text on a black background

contrast 3.38:1

Card sample

#af2b6c text on a white background

contrast 6.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2b6c

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.

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

#af2b6c, answered

What color is #af2b6c?

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

What is the RGB value of #af2b6c?

rgb(175, 43, 108) — 175 red, 43 green and 108 blue out of 255, or 68.6% / 16.9% / 42.4% by channel.

Is #af2b6c a light or a dark color?

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

Should I use black or white text on #af2b6c?

White. It scores 6.20:1 against #af2b6c, versus 3.38:1 for black — AA at any size.

What is the complementary color of #af2b6c?

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

What colors go well with #af2b6c?

For interface work: #FAF4F7 as the surface, #EDC0D6 for borders, #9B4B72 for secondary text, #25A746 as an accent and #66193F for hover and pressed states. For a palette, the analogous pair #AF2BAE and #AF2C2B stays calm, while #2BAF6E is the loudest partner.

What is #af2b6c in CMYK for printing?

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

Is #af2b6c warm or cool?

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

Work with #af2b6c in the Color Lab