Skip to content

#af016b

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

RGB
175, 1, 107
HSL
323°, 99%, 35%
CMYK
0, 99, 39, 31
Luminance
0.1020

At a glance

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

Hex
#af016b
Hue
323°
magenta / pink
Saturation
99%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1020
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.91:1
Closest name
Medium Violet Red
ΔE2000 6.4
Where it sits
Hue323° of 360°
Saturation99%
Lightness35%
Temperature
Warm ← → Cool37% 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#af016b
RGBrgb(175, 1, 107)
HSLhsl(323, 99%, 35%)
CMYKcmyk(0%, 99%, 39%, 31%)
LABlab(38.2 65.5 -9.4)
LCHlch(38.2 66.2 351.8)
OKLCHoklch(0.494 0.204 353.2)
Decimal11469163
Display P3color(display-p3 0.686 0.004 0.420)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af016b on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#af016b on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #35486D
deuteranopia · #636468
tritanopia · #BE003D

Color scale — 50 to 950

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

#FEF1F9
#FCE3F2
#FBC0E4
#FE8FD3
#FE58BD
#FE20A7
#F30195
#CB017C
#af016b
#750649
#49032E
Base = 800Lightest = 50 · #FEF1F9Darkest = 950 · #49032E
:root {
  --brand-50: #FEF1F9;
  --brand-100: #FCE3F2;
  --brand-200: #FBC0E4;
  --brand-300: #FE8FD3;
  --brand-400: #FE58BD;
  --brand-500: #FE20A7;
  --brand-600: #F30195;
  --brand-700: #CB017C;
  --brand-800: #af016b;
  --brand-900: #750649;
  --brand-950: #49032E;
  --brand: #af016b;
  --brand-ink: #ffffff;
}

Colors that work with #af016b

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#EDC0DB
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#00CC1D
Second voice, not a rival
Dark variant#7F014E
Hover, pressed, headers
Light variant#FFE6F5
Selected rows, tints
Dark surface#24141E
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 #af016b

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#01AF45
Analogous left#9C01AF
Analogous right#AF0114
Split-complement 1#14AF01
Split-complement 2#01AF9C
Triadic 1#6BAF01
Triadic 2#016BAF
Tetradic#AF9C01

RGB percentages

Red68.6%
Green0.4%
Blue42.0%

CMYK percentages

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

Color previews

#af016b text on a black background

contrast 3.04:1

Card sample

#af016b text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af016b

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.

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

#af016b, answered

What color is #af016b?

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

What is the RGB value of #af016b?

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

Is #af016b a light or a dark color?

It is a dark color. Relative luminance is 0.1020 and perceived brightness is 40%, so white text on it reaches 6.91:1.

Should I use black or white text on #af016b?

White. It scores 6.91:1 against #af016b, versus 3.04:1 for black — AA at any size.

What is the complementary color of #af016b?

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

What colors go well with #af016b?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7C for secondary text, #00CC1D as an accent and #7F014E for hover and pressed states. For a palette, the analogous pair #9C01AF and #AF0114 stays calm, while #01AF45 is the loudest partner.

What is #af016b in CMYK for printing?

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

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

Work with #af016b in the Color Lab