Skip to content

#af0179

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

RGB
175, 1, 121
HSL
319°, 99%, 35%
CMYK
0, 99, 31, 31
Luminance
0.1052

At a glance

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

Hex
#af0179
Hue
319°
magenta / pink
Saturation
99%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1052
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.77:1
Closest name
Medium Violet Red
ΔE2000 5.6
Where it sits
Hue319° of 360°
Saturation99%
Lightness35%
Temperature
Warm ← → Cool40% 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#af0179
RGBrgb(175, 1, 121)
HSLhsl(319, 99%, 35%)
CMYKcmyk(0%, 99%, 31%, 31%)
LABlab(38.8 66.9 -17.4)
LCHlch(38.8 69.1 345.5)
OKLCHoklch(0.500 0.210 347.4)
Decimal11469177
Display P3color(display-p3 0.686 0.004 0.475)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0179 on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#af0179 on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2D4A7B
deuteranopia · #5F6576
tritanopia · #BC0045

Color scale — 50 to 950

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

#FEF1FA
#FCE3F4
#FBC0E9
#FE8FDC
#FE58CA
#FE20B9
#F301A8
#CB018C
#af0179
#750652
#490333
Base = 800Lightest = 50 · #FEF1FADarkest = 950 · #490333
:root {
  --brand-50: #FEF1FA;
  --brand-100: #FCE3F4;
  --brand-200: #FBC0E9;
  --brand-300: #FE8FDC;
  --brand-400: #FE58CA;
  --brand-500: #FE20B9;
  --brand-600: #F301A8;
  --brand-700: #CB018C;
  --brand-800: #af0179;
  --brand-900: #750652;
  --brand-950: #490333;
  --brand: #af0179;
  --brand-ink: #ffffff;
}

Colors that work with #af0179

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#EDC0DF
Hairlines and dividers
Muted text#9B4B82
Captions on the surface
Accent#00CC0D
Second voice, not a rival
Dark variant#7F0158
Hover, pressed, headers
Light variant#FFE6F7
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 #af0179

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#01AF37
Analogous left#8E01AF
Analogous right#AF0122
Split-complement 1#22AF01
Split-complement 2#01AF8E
Triadic 1#79AF01
Triadic 2#0179AF
Tetradic#AF8E01

RGB percentages

Red68.6%
Green0.4%
Blue47.5%

CMYK percentages

Cyan0.0%
Magenta99.4%
Yellow30.9%
Key (black)31.4%

Color previews

#af0179 text on a black background

contrast 3.10:1

Card sample

#af0179 text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0179

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.

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

#af0179, answered

What color is #af0179?

#af0179 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 5.6). It sits at 319° on the hue wheel with 99% saturation and 35% lightness, which reads as warm.

What is the RGB value of #af0179?

rgb(175, 1, 121) — 175 red, 1 green and 121 blue out of 255, or 68.6% / 0.4% / 47.5% by channel.

Is #af0179 a light or a dark color?

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

Should I use black or white text on #af0179?

White. It scores 6.77:1 against #af0179, versus 3.10:1 for black — AA at any size.

What is the complementary color of #af0179?

#01AF37 sits directly opposite on the wheel. Softer options are the split-complements #22AF01 and #01AF8E, which give the same contrast with far less vibration.

What colors go well with #af0179?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B82 for secondary text, #00CC0D as an accent and #7F0158 for hover and pressed states. For a palette, the analogous pair #8E01AF and #AF0122 stays calm, while #01AF37 is the loudest partner.

What is #af0179 in CMYK for printing?

cmyk(0%, 99%, 31%, 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 #af0179 warm or cool?

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

Work with #af0179 in the Color Lab