Skip to content

#af0c77

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

RGB
175, 12, 119
HSL
321°, 87%, 37%
CMYK
0, 93, 32, 31
Luminance
0.1071

At a glance

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

Hex
#af0c77
Hue
321°
magenta / pink
Saturation
87%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1071
WCAG relative
Temperature
Warm
39/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.68:1
Closest name
Medium Violet Red
ΔE2000 5.3
Where it sits
Hue321° of 360°
Saturation87%
Lightness37%
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#af0c77
RGBrgb(175, 12, 119)
HSLhsl(321, 87%, 37%)
CMYKcmyk(0%, 93%, 32%, 31%)
LABlab(39.1 65.5 -15.6)
LCHlch(39.1 67.3 346.6)
OKLCHoklch(0.502 0.205 348.5)
Decimal11471991
Display P3color(display-p3 0.686 0.047 0.467)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0c77 on white: 6.68:1
AA ✓ pass · AA-large · AAA
Aa
#af0c77 on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #324B79
deuteranopia · #616574
tritanopia · #BC0046

Color scale — 50 to 950

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

#FDF2F9
#FAE5F3
#F7C4E6
#F896D6
#F461C2
#F12DAD
#E5109C
#af0c77
#990A68
#6E0C4D
#450830
Base = 700Lightest = 50 · #FDF2F9Darkest = 950 · #450830
:root {
  --brand-50: #FDF2F9;
  --brand-100: #FAE5F3;
  --brand-200: #F7C4E6;
  --brand-300: #F896D6;
  --brand-400: #F461C2;
  --brand-500: #F12DAD;
  --brand-600: #E5109C;
  --brand-700: #af0c77;
  --brand-800: #990A68;
  --brand-900: #6E0C4D;
  --brand-950: #450830;
  --brand: #af0c77;
  --brand-ink: #ffffff;
}

Colors that work with #af0c77

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#EDC0DD
Hairlines and dividers
Muted text#9B4B7F
Captions on the surface
Accent#09C31A
Second voice, not a rival
Dark variant#770851
Hover, pressed, headers
Light variant#FDE7F6
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 #af0c77

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#0CAF44
Analogous left#960CAF
Analogous right#AF0C26
Split-complement 1#26AF0C
Split-complement 2#0CAF96
Triadic 1#77AF0C
Triadic 2#0C77AF
Tetradic#AF960C

RGB percentages

Red68.6%
Green4.7%
Blue46.7%

CMYK percentages

Cyan0.0%
Magenta93.1%
Yellow32.0%
Key (black)31.4%

Color previews

#af0c77 text on a black background

contrast 3.14:1

Card sample

#af0c77 text on a white background

contrast 6.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0c77

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.

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

#af0c77, answered

What color is #af0c77?

#af0c77 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 5.3). It sits at 321° on the hue wheel with 87% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af0c77?

rgb(175, 12, 119) — 175 red, 12 green and 119 blue out of 255, or 68.6% / 4.7% / 46.7% by channel.

Is #af0c77 a light or a dark color?

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

Should I use black or white text on #af0c77?

White. It scores 6.68:1 against #af0c77, versus 3.14:1 for black — AA at any size.

What is the complementary color of #af0c77?

#0CAF44 sits directly opposite on the wheel. Softer options are the split-complements #26AF0C and #0CAF96, which give the same contrast with far less vibration.

What colors go well with #af0c77?

For interface work: #FAF4F8 as the surface, #EDC0DD for borders, #9B4B7F for secondary text, #09C31A as an accent and #770851 for hover and pressed states. For a palette, the analogous pair #960CAF and #AF0C26 stays calm, while #0CAF44 is the loudest partner.

What is #af0c77 in CMYK for printing?

cmyk(0%, 93%, 32%, 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 #af0c77 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 #AF0C3B; nudged cooler, #AD0AB1.

Work with #af0c77 in the Color Lab