Skip to content

#af0d63

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

RGB
175, 13, 99
HSL
328°, 86%, 37%
CMYK
0, 93, 43, 31
Luminance
0.1030

At a glance

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

Hex
#af0d63
Hue
328°
magenta / pink
Saturation
86%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1030
WCAG relative
Temperature
Warm
34/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.86:1
Closest name
Medium Violet Red
ΔE2000 7.4
Where it sits
Hue328° of 360°
Saturation86%
Lightness37%
Temperature
Warm ← → Cool34% 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#af0d63
RGBrgb(175, 13, 99)
HSLhsl(328, 86%, 37%)
CMYKcmyk(0%, 93%, 43%, 31%)
LABlab(38.4 63.4 -4.0)
LCHlch(38.4 63.5 356.4)
OKLCHoklch(0.495 0.196 357.1)
Decimal11472227
Display P3color(display-p3 0.686 0.051 0.388)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0d63 on white: 6.86:1
AA ✓ pass · AA-large · AAA
Aa
#af0d63 on black: 3.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B4865
deuteranopia · #666460
tritanopia · #BE003A

Color scale — 50 to 950

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

#FDF2F8
#FAE5F0
#F7C5DF
#F797CA
#F362AF
#F02E95
#E41181
#af0d63
#980B56
#6E0D40
#450828
Base = 700Lightest = 50 · #FDF2F8Darkest = 950 · #450828
:root {
  --brand-50: #FDF2F8;
  --brand-100: #FAE5F0;
  --brand-200: #F7C5DF;
  --brand-300: #F797CA;
  --brand-400: #F362AF;
  --brand-500: #F02E95;
  --brand-600: #E41181;
  --brand-700: #af0d63;
  --brand-800: #980B56;
  --brand-900: #6E0D40;
  --brand-950: #450828;
  --brand: #af0d63;
  --brand-ink: #ffffff;
}

Colors that work with #af0d63

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#EDC0D8
Hairlines and dividers
Muted text#9B4B75
Captions on the surface
Accent#0AC232
Second voice, not a rival
Dark variant#770943
Hover, pressed, headers
Light variant#FDE7F3
Selected rows, tints
Dark surface#24141D
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 #af0d63

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#0DAF59
Analogous left#AA0DAF
Analogous right#AF0D12
Split-complement 1#12AF0D
Split-complement 2#0DAFAA
Triadic 1#63AF0D
Triadic 2#0D63AF
Tetradic#AFAA0D

RGB percentages

Red68.6%
Green5.1%
Blue38.8%

CMYK percentages

Cyan0.0%
Magenta92.6%
Yellow43.4%
Key (black)31.4%

Color previews

#af0d63 text on a black background

contrast 3.06:1

Card sample

#af0d63 text on a white background

contrast 6.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0d63

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.

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

#af0d63, answered

What color is #af0d63?

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

What is the RGB value of #af0d63?

rgb(175, 13, 99) — 175 red, 13 green and 99 blue out of 255, or 68.6% / 5.1% / 38.8% by channel.

Is #af0d63 a light or a dark color?

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

Should I use black or white text on #af0d63?

White. It scores 6.86:1 against #af0d63, versus 3.06:1 for black — AA at any size.

What is the complementary color of #af0d63?

#0DAF59 sits directly opposite on the wheel. Softer options are the split-complements #12AF0D and #0DAFAA, which give the same contrast with far less vibration.

What colors go well with #af0d63?

For interface work: #FAF4F8 as the surface, #EDC0D8 for borders, #9B4B75 for secondary text, #0AC232 as an accent and #770943 for hover and pressed states. For a palette, the analogous pair #AA0DAF and #AF0D12 stays calm, while #0DAF59 is the loudest partner.

What is #af0d63 in CMYK for printing?

cmyk(0%, 93%, 43%, 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 #af0d63 warm or cool?

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

Work with #af0d63 in the Color Lab