Skip to content

#af024b

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

RGB
175, 2, 75
HSL
335°, 98%, 35%
CMYK
0, 99, 57, 31
Luminance
0.0967

At a glance

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

Hex
#af024b
Hue
335°
magenta / pink
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0967
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.16:1
Closest name
Medium Violet Red
ΔE2000 12.6
Where it sits
Hue335° of 360°
Saturation98%
Lightness35%
Temperature
Warm ← → Cool31% 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#af024b
RGBrgb(175, 2, 75)
HSLhsl(335, 98%, 35%)
CMYKcmyk(0%, 99%, 57%, 31%)
LABlab(37.2 62.7 9.7)
LCHlch(37.2 63.5 8.8)
OKLCHoklch(0.484 0.193 7.4)
Decimal11469387
Display P3color(display-p3 0.686 0.008 0.294)

Copy-ready code

/* CSS */
color: #af024b;
background-color: #af024b;
/* Tailwind (arbitrary) */
class="text-[#af024b] bg-[#af024b]"
/* SCSS */
$brand: #af024b;
/* SwiftUI */
Color(red: 0.686, green: 0.008, blue: 0.294)
/* Android */
Color.parseColor("#af024b")
/* Flutter */
Color(0xFFAF024B)
/* Python / OpenCV (BGR) */
(75, 2, 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 #af024b · 7.16:1
Use #ffffffAAA at every size.
Aa
White text · 7.16:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.93:1
AA fail · AA large fail · AAA fail
Reading the other direction: #af024b as text scores 7.16:1 on white and 2.93:1 on black.

Accessibility — WCAG contrast

Aa
#af024b on white: 7.16:1
AA ✓ pass · AA-large · AAA
Aa
#af024b on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #40434C
deuteranopia · #696347
tritanopia · #C0002B

Color scale — 50 to 950

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

#FDF1F6
#FCE4EE
#FBC1D9
#FE90BE
#FD599E
#FC217E
#F20368
#CA0256
#af024b
#740635
#490421
Base = 800Lightest = 50 · #FDF1F6Darkest = 950 · #490421
:root {
  --brand-50: #FDF1F6;
  --brand-100: #FCE4EE;
  --brand-200: #FBC1D9;
  --brand-300: #FE90BE;
  --brand-400: #FD599E;
  --brand-500: #FC217E;
  --brand-600: #F20368;
  --brand-700: #CA0256;
  --brand-800: #af024b;
  --brand-900: #740635;
  --brand-950: #490421;
  --brand: #af024b;
  --brand-ink: #ffffff;
}

Colors that work with #af024b

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#FAF4F7
Tinted page background
Border#EDC0D3
Hairlines and dividers
Muted text#9B4B6C
Captions on the surface
Accent#00CC43
Second voice, not a rival
Dark variant#7E0136
Hover, pressed, headers
Light variant#FFE6F0
Selected rows, tints
Dark surface#24141B
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 #af024b

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
  • Text on black or near-black surfaces
  • 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#02AF66
Analogous left#AF02A1
Analogous right#AF1002
Split-complement 1#02AF10
Split-complement 2#02A1AF
Triadic 1#4BAF02
Triadic 2#024BAF
Tetradic#A1AF02

RGB percentages

Red68.6%
Green0.8%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta98.9%
Yellow57.1%
Key (black)31.4%

Color previews

#af024b text on a black background

contrast 2.93:1

Card sample

#af024b text on a white background

contrast 7.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af024b

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.

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

#af024b, answered

What color is #af024b?

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

What is the RGB value of #af024b?

rgb(175, 2, 75) — 175 red, 2 green and 75 blue out of 255, or 68.6% / 0.8% / 29.4% by channel.

Is #af024b a light or a dark color?

It is a dark color. Relative luminance is 0.0967 and perceived brightness is 39%, so white text on it reaches 7.16:1.

Should I use black or white text on #af024b?

White. It scores 7.16:1 against #af024b, versus 2.93:1 for black — AAA at any size.

What is the complementary color of #af024b?

#02AF66 sits directly opposite on the wheel. Softer options are the split-complements #02AF10 and #02A1AF, which give the same contrast with far less vibration.

What colors go well with #af024b?

For interface work: #FAF4F7 as the surface, #EDC0D3 for borders, #9B4B6C for secondary text, #00CC43 as an accent and #7E0136 for hover and pressed states. For a palette, the analogous pair #AF02A1 and #AF1002 stays calm, while #02AF66 is the loudest partner.

What is #af024b in CMYK for printing?

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

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

Work with #af024b in the Color Lab