Skip to content

#af0950

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

RGB
175, 9, 80
HSL
334°, 90%, 36%
CMYK
0, 95, 54, 31
Luminance
0.0989

At a glance

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

Hex
#af0950
Hue
334°
magenta / pink
Saturation
90%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0989
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.05:1
Closest name
Medium Violet Red
ΔE2000 11.4
Where it sits
Hue334° of 360°
Saturation90%
Lightness36%
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#af0950
RGBrgb(175, 9, 80)
HSLhsl(334, 90%, 36%)
CMYKcmyk(0%, 95%, 54%, 31%)
LABlab(37.6 62.3 7.1)
LCHlch(37.6 62.7 6.5)
OKLCHoklch(0.487 0.192 5.5)
Decimal11471184
Display P3color(display-p3 0.686 0.035 0.314)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0950 on white: 7.05:1
AA ✓ pass · AA-large · AAA
Aa
#af0950 on black: 2.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #404551
deuteranopia · #69634C
tritanopia · #BF002F

Color scale — 50 to 950

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

#FDF2F7
#FBE5EE
#F8C3DA
#FA94C0
#F75FA0
#F42A80
#E90C6B
#af0950
#9B0847
#700A36
#460722
Base = 700Lightest = 50 · #FDF2F7Darkest = 950 · #460722
:root {
  --brand-50: #FDF2F7;
  --brand-100: #FBE5EE;
  --brand-200: #F8C3DA;
  --brand-300: #FA94C0;
  --brand-400: #F75FA0;
  --brand-500: #F42A80;
  --brand-600: #E90C6B;
  --brand-700: #af0950;
  --brand-800: #9B0847;
  --brand-900: #700A36;
  --brand-950: #460722;
  --brand: #af0950;
  --brand-ink: #ffffff;
}

Colors that work with #af0950

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#9B4B6D
Captions on the surface
Accent#06C644
Second voice, not a rival
Dark variant#790638
Hover, pressed, headers
Light variant#FEE7F1
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 #af0950

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#09AF68
Analogous left#AF09A3
Analogous right#AF1509
Split-complement 1#09AF15
Split-complement 2#09A3AF
Triadic 1#50AF09
Triadic 2#0950AF
Tetradic#A3AF09

RGB percentages

Red68.6%
Green3.5%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta94.9%
Yellow54.3%
Key (black)31.4%

Color previews

#af0950 text on a black background

contrast 2.98:1

Card sample

#af0950 text on a white background

contrast 7.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0950

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.

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

#af0950, answered

What color is #af0950?

#af0950 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 11.4). It sits at 334° on the hue wheel with 90% saturation and 36% lightness, which reads as warm.

What is the RGB value of #af0950?

rgb(175, 9, 80) — 175 red, 9 green and 80 blue out of 255, or 68.6% / 3.5% / 31.4% by channel.

Is #af0950 a light or a dark color?

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

Should I use black or white text on #af0950?

White. It scores 7.05:1 against #af0950, versus 2.98:1 for black — AAA at any size.

What is the complementary color of #af0950?

#09AF68 sits directly opposite on the wheel. Softer options are the split-complements #09AF15 and #09A3AF, which give the same contrast with far less vibration.

What colors go well with #af0950?

For interface work: #FAF4F7 as the surface, #EDC0D3 for borders, #9B4B6D for secondary text, #06C644 as an accent and #790638 for hover and pressed states. For a palette, the analogous pair #AF09A3 and #AF1509 stays calm, while #09AF68 is the loudest partner.

What is #af0950 in CMYK for printing?

cmyk(0%, 95%, 54%, 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 #af0950 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 #AF0913; nudged cooler, #B1078E.

Work with #af0950 in the Color Lab