Skip to content

#af40c3

a balanced, vivid magenta / pink · neutral · closest name: Medium Orchid

RGB
175, 64, 195
HSL
291°, 52%, 51%
CMYK
10, 67, 0, 24
Luminance
0.1672

At a glance

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

Hex
#af40c3
Hue
291°
magenta / pink
Saturation
52%
vivid
Lightness
51%
balanced
Brightness
76%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1672
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.83:1
Closest name
Medium Orchid
ΔE2000 5.8
Where it sits
Hue291° of 360°
Saturation52%
Lightness51%
Temperature
Warm ← → Cool55% 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#af40c3
RGBrgb(175, 64, 195)
HSLhsl(291, 52%, 51%)
CMYKcmyk(10%, 67%, 0%, 24%)
LABlab(47.9 62.5 -47.4)
LCHlch(47.9 78.5 322.8)
OKLCHoklch(0.578 0.211 321.2)
Decimal11485379
Display P3color(display-p3 0.686 0.251 0.765)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af40c3 on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#af40c3 on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #156AC7
deuteranopia · #4F76C0
tritanopia · #B0577D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af40c3 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF4FA
#F4E9F6
#E8CFED
#DBAAE4
#C97FD7
#B754C9
#af40c3
#8B319B
#6F277C
#52205B
#331439
Base = 600Lightest = 50 · #FAF4FADarkest = 950 · #331439
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F4E9F6;
  --brand-200: #E8CFED;
  --brand-300: #DBAAE4;
  --brand-400: #C97FD7;
  --brand-500: #B754C9;
  --brand-600: #af40c3;
  --brand-700: #8B319B;
  --brand-800: #6F277C;
  --brand-900: #52205B;
  --brand-950: #331439;
  --brand: #af40c3;
  --brand-ink: #ffffff;
}

Colors that work with #af40c3

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#F9F4FA
Tinted page background
Border#E5C1EB
Hairlines and dividers
Muted text#8F4B9B
Captions on the surface
Accent#5B9F2D
Second voice, not a rival
Dark variant#571E61
Hover, pressed, headers
Light variant#F7ECF9
Selected rows, tints
Dark surface#221424
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 #af40c3

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#54C340
Analogous left#6D40C3
Analogous right#C34096
Split-complement 1#96C340
Split-complement 2#40C36D
Triadic 1#C3AF40
Triadic 2#40C3AF
Tetradic#C36D40

RGB percentages

Red68.6%
Green25.1%
Blue76.5%

CMYK percentages

Cyan10.3%
Magenta67.2%
Yellow0.0%
Key (black)23.5%

Color previews

#af40c3 text on a black background

contrast 4.34:1

Card sample

#af40c3 text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af40c3

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.

#af40c3 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

Converts to four-color process without much drama. Proof it anyway.

#af40c3, answered

What color is #af40c3?

#af40c3 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 5.8). It sits at 291° on the hue wheel with 52% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #af40c3?

rgb(175, 64, 195) — 175 red, 64 green and 195 blue out of 255, or 68.6% / 25.1% / 76.5% by channel.

Is #af40c3 a light or a dark color?

It is a dark color. Relative luminance is 0.1672 and perceived brightness is 49%, so white text on it reaches 4.83:1.

Should I use black or white text on #af40c3?

White. It scores 4.83:1 against #af40c3, versus 4.34:1 for black — AA at any size.

What is the complementary color of #af40c3?

#54C340 sits directly opposite on the wheel. Softer options are the split-complements #96C340 and #40C36D, which give the same contrast with far less vibration.

What colors go well with #af40c3?

For interface work: #F9F4FA as the surface, #E5C1EB for borders, #8F4B9B for secondary text, #5B9F2D as an accent and #571E61 for hover and pressed states. For a palette, the analogous pair #6D40C3 and #C34096 stays calm, while #54C340 is the loudest partner.

What is #af40c3 in CMYK for printing?

cmyk(10%, 67%, 0%, 24%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af40c3 warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C340A7; nudged cooler, #7F3EC6.

Work with #af40c3 in the Color Lab