Skip to content

#af147c

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

RGB
175, 20, 124
HSL
320°, 80%, 38%
CMYK
0, 89, 29, 31
Luminance
0.1107

At a glance

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

Hex
#af147c
Hue
320°
magenta / pink
Saturation
80%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1107
WCAG relative
Temperature
Warm
39/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.53:1
Closest name
Medium Violet Red
ΔE2000 5
Where it sits
Hue320° of 360°
Saturation80%
Lightness38%
Temperature
Warm ← → Cool39% 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#af147c
RGBrgb(175, 20, 124)
HSLhsl(320, 80%, 38%)
CMYKcmyk(0%, 89%, 29%, 31%)
LABlab(39.7 64.9 -17.8)
LCHlch(39.7 67.3 344.7)
OKLCHoklch(0.507 0.204 346.6)
Decimal11474044
Display P3color(display-p3 0.686 0.078 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af147c on white: 6.53:1
AA ✓ pass · AA-large · AAA
Aa
#af147c on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #324D7E
deuteranopia · #606779
tritanopia · #BC094A

Color scale — 50 to 950

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

#FCF3F9
#F9E6F3
#F5C7E6
#F39AD6
#EE68C2
#E836AD
#DC199C
#af147c
#921168
#6A104D
#420A30
Base = 700Lightest = 50 · #FCF3F9Darkest = 950 · #420A30
:root {
  --brand-50: #FCF3F9;
  --brand-100: #F9E6F3;
  --brand-200: #F5C7E6;
  --brand-300: #F39AD6;
  --brand-400: #EE68C2;
  --brand-500: #E836AD;
  --brand-600: #DC199C;
  --brand-700: #af147c;
  --brand-800: #921168;
  --brand-900: #6A104D;
  --brand-950: #420A30;
  --brand: #af147c;
  --brand-ink: #ffffff;
}

Colors that work with #af147c

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#FAF4F8
Tinted page background
Border#EDC0DE
Hairlines and dividers
Muted text#9B4B81
Captions on the surface
Accent#11BB1E
Second voice, not a rival
Dark variant#720D51
Hover, pressed, headers
Light variant#FCE8F6
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 #af147c

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#14AF47
Analogous left#9414AF
Analogous right#AF142F
Split-complement 1#2FAF14
Split-complement 2#14AF94
Triadic 1#7CAF14
Triadic 2#147CAF
Tetradic#AF9414

RGB percentages

Red68.6%
Green7.8%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta88.6%
Yellow29.1%
Key (black)31.4%

Color previews

#af147c text on a black background

contrast 3.21:1

Card sample

#af147c text on a white background

contrast 6.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af147c

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.

#af147c 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af147c, answered

What color is #af147c?

#af147c is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 5). It sits at 320° on the hue wheel with 80% saturation and 38% lightness, which reads as warm.

What is the RGB value of #af147c?

rgb(175, 20, 124) — 175 red, 20 green and 124 blue out of 255, or 68.6% / 7.8% / 48.6% by channel.

Is #af147c a light or a dark color?

It is a dark color. Relative luminance is 0.1107 and perceived brightness is 41%, so white text on it reaches 6.53:1.

Should I use black or white text on #af147c?

White. It scores 6.53:1 against #af147c, versus 3.21:1 for black — AA at any size.

What is the complementary color of #af147c?

#14AF47 sits directly opposite on the wheel. Softer options are the split-complements #2FAF14 and #14AF94, which give the same contrast with far less vibration.

What colors go well with #af147c?

For interface work: #FAF4F8 as the surface, #EDC0DE for borders, #9B4B81 for secondary text, #11BB1E as an accent and #720D51 for hover and pressed states. For a palette, the analogous pair #9414AF and #AF142F stays calm, while #14AF47 is the loudest partner.

What is #af147c in CMYK for printing?

cmyk(0%, 89%, 29%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af147c warm or cool?

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

Work with #af147c in the Color Lab