Skip to content

#af1192

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

RGB
175, 17, 146
HSL
311°, 82%, 38%
CMYK
0, 90, 17, 31
Luminance
0.1159

At a glance

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

Hex
#af1192
Hue
311°
magenta / pink
Saturation
82%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1159
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.33:1
Closest name
Medium Violet Red
ΔE2000 7
Where it sits
Hue311° of 360°
Saturation82%
Lightness38%
Temperature
Warm ← → Cool44% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af1192
RGBrgb(175, 17, 146)
HSLhsl(311, 82%, 38%)
CMYKcmyk(0%, 90%, 17%, 31%)
LABlab(40.6 68.1 -30.0)
LCHlch(40.6 74.4 336.2)
OKLCHoklch(0.517 0.218 338.0)
Decimal11473298
Display P3color(display-p3 0.686 0.067 0.573)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1192 on white: 6.33:1
AA ✓ pass · AA-large · AAA
Aa
#af1192 on black: 3.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D5195
deuteranopia · #58688F
tritanopia · #B91F56

Color scale — 50 to 950

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

#FCF2FA
#FAE6F6
#F6C6ED
#F599E4
#F066D7
#EB32C9
#DF16BA
#af1192
#950E7C
#6C0F5B
#430939
Base = 700Lightest = 50 · #FCF2FADarkest = 950 · #430939
:root {
  --brand-50: #FCF2FA;
  --brand-100: #FAE6F6;
  --brand-200: #F6C6ED;
  --brand-300: #F599E4;
  --brand-400: #F066D7;
  --brand-500: #EB32C9;
  --brand-600: #DF16BA;
  --brand-700: #af1192;
  --brand-800: #950E7C;
  --brand-900: #6C0F5B;
  --brand-950: #430939;
  --brand: #af1192;
  --brand-ink: #ffffff;
}

Colors that work with #af1192

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#FAF4F9
Tinted page background
Border#EDC0E4
Hairlines and dividers
Muted text#9B4B8C
Captions on the surface
Accent#1ABE0E
Second voice, not a rival
Dark variant#740B61
Hover, pressed, headers
Light variant#FDE8F9
Selected rows, tints
Dark surface#241421
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 #af1192

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#11AF2E
Analogous left#7D11AF
Analogous right#AF1143
Split-complement 1#43AF11
Split-complement 2#11AF7D
Triadic 1#92AF11
Triadic 2#1192AF
Tetradic#AF7D11

RGB percentages

Red68.6%
Green6.7%
Blue57.3%

CMYK percentages

Cyan0.0%
Magenta90.3%
Yellow16.6%
Key (black)31.4%

Color previews

#af1192 text on a black background

contrast 3.32:1

Card sample

#af1192 text on a white background

contrast 6.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1192

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.

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

#af1192, answered

What color is #af1192?

#af1192 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 7). It sits at 311° on the hue wheel with 82% saturation and 38% lightness, which reads as neutral.

What is the RGB value of #af1192?

rgb(175, 17, 146) — 175 red, 17 green and 146 blue out of 255, or 68.6% / 6.7% / 57.3% by channel.

Is #af1192 a light or a dark color?

It is a dark color. Relative luminance is 0.1159 and perceived brightness is 43%, so white text on it reaches 6.33:1.

Should I use black or white text on #af1192?

White. It scores 6.33:1 against #af1192, versus 3.32:1 for black — AA at any size.

What is the complementary color of #af1192?

#11AF2E sits directly opposite on the wheel. Softer options are the split-complements #43AF11 and #11AF7D, which give the same contrast with far less vibration.

What colors go well with #af1192?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8C for secondary text, #1ABE0E as an accent and #740B61 for hover and pressed states. For a palette, the analogous pair #7D11AF and #AF1143 stays calm, while #11AF2E is the loudest partner.

What is #af1192 in CMYK for printing?

cmyk(0%, 90%, 17%, 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 #af1192 warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF1158; nudged cooler, #930FB1.

Work with #af1192 in the Color Lab