Skip to content

#af148d

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

RGB
175, 20, 141
HSL
313°, 80%, 38%
CMYK
0, 89, 19, 31
Luminance
0.1154

At a glance

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

Hex
#af148d
Hue
313°
magenta / pink
Saturation
80%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1154
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.35:1
Closest name
Medium Violet Red
ΔE2000 6.3
Where it sits
Hue313° of 360°
Saturation80%
Lightness38%
Temperature
Warm ← → Cool43% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af148d
RGBrgb(175, 20, 141)
HSLhsl(313, 80%, 38%)
CMYKcmyk(0%, 89%, 19%, 31%)
LABlab(40.5 67.0 -27.1)
LCHlch(40.5 72.2 338.0)
OKLCHoklch(0.515 0.213 339.9)
Decimal11474061
Display P3color(display-p3 0.686 0.078 0.553)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af148d on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#af148d on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #255090
deuteranopia · #5A688A
tritanopia · #BA1D54

Color scale — 50 to 950

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

#FCF3FA
#F9E6F5
#F5C7EB
#F39AE0
#EE68D0
#E836C1
#DC19B1
#af148d
#921176
#6A1056
#420A36
Base = 700Lightest = 50 · #FCF3FADarkest = 950 · #420A36
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F9E6F5;
  --brand-200: #F5C7EB;
  --brand-300: #F39AE0;
  --brand-400: #EE68D0;
  --brand-500: #E836C1;
  --brand-600: #DC19B1;
  --brand-700: #af148d;
  --brand-800: #921176;
  --brand-900: #6A1056;
  --brand-950: #420A36;
  --brand: #af148d;
  --brand-ink: #ffffff;
}

Colors that work with #af148d

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#FAF4F9
Tinted page background
Border#EDC0E3
Hairlines and dividers
Muted text#9B4B89
Captions on the surface
Accent#16BB11
Second voice, not a rival
Dark variant#720D5C
Hover, pressed, headers
Light variant#FCE8F8
Selected rows, tints
Dark surface#241421
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 #af148d

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#14AF36
Analogous left#8314AF
Analogous right#AF143F
Split-complement 1#3FAF14
Split-complement 2#14AF83
Triadic 1#8DAF14
Triadic 2#148DAF
Tetradic#AF8314

RGB percentages

Red68.6%
Green7.8%
Blue55.3%

CMYK percentages

Cyan0.0%
Magenta88.6%
Yellow19.4%
Key (black)31.4%

Color previews

#af148d text on a black background

contrast 3.31:1

Card sample

#af148d text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af148d

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.

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

#af148d, answered

What color is #af148d?

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

What is the RGB value of #af148d?

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

Is #af148d a light or a dark color?

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

Should I use black or white text on #af148d?

White. It scores 6.35:1 against #af148d, versus 3.31:1 for black — AA at any size.

What is the complementary color of #af148d?

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

What colors go well with #af148d?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B89 for secondary text, #16BB11 as an accent and #720D5C for hover and pressed states. For a palette, the analogous pair #8314AF and #AF143F stays calm, while #14AF36 is the loudest partner.

What is #af148d in CMYK for printing?

cmyk(0%, 89%, 19%, 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 #af148d warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF1454; nudged cooler, #9A12B1.

Work with #af148d in the Color Lab