Skip to content

#af79cf

a balanced, vivid violet · cool · closest name: Medium Purple

RGB
175, 121, 207
HSL
278°, 47%, 64%
CMYK
16, 42, 0, 19
Luminance
0.2729

At a glance

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

Hex
#af79cf
Hue
278°
violet
Saturation
47%
vivid
Lightness
64%
balanced
Brightness
81%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2729
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.46:1
Closest name
Medium Purple
ΔE2000 7.6
Where it sits
Hue278° of 360°
Saturation47%
Lightness64%
Temperature
Warm ← → Cool62% cool

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

Every format

HEX#af79cf
RGBrgb(175, 121, 207)
HSLhsl(278, 47%, 64%)
CMYKcmyk(16%, 42%, 0%, 19%)
LABlab(59.3 36.7 -36.4)
LCHlch(59.3 51.7 315.2)
OKLCHoklch(0.663 0.136 312.0)
Decimal11499983
Display P3color(display-p3 0.686 0.475 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af79cf on white: 3.25:1
AA ✗ fail · AA-large · AAA
Aa
#af79cf on black: 6.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #688CD2
deuteranopia · #7690CD
tritanopia · #AC859A

Color scale — 50 to 950

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

#F8F5FA
#F1EAF5
#E1D0EC
#CEACE1
#af79cf
#9C5AC4
#8941B4
#723696
#5C2B78
#442358
#2B1637
Base = 400Lightest = 50 · #F8F5FADarkest = 950 · #2B1637
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F1EAF5;
  --brand-200: #E1D0EC;
  --brand-300: #CEACE1;
  --brand-400: #af79cf;
  --brand-500: #9C5AC4;
  --brand-600: #8941B4;
  --brand-700: #723696;
  --brand-800: #5C2B78;
  --brand-900: #442358;
  --brand-950: #2B1637;
  --brand: #af79cf;
  --brand-ink: #000000;
}

Colors that work with #af79cf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8F4FA
Tinted page background
Border#DBC3E9
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#729B31
Second voice, not a rival
Dark variant#47225E
Hover, pressed, headers
Light variant#F4ECF8
Selected rows, tints
Dark surface#1E1424
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 #af79cf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#99CF79
Analogous left#8479CF
Analogous right#CF79C4
Split-complement 1#C4CF79
Split-complement 2#79CF84
Triadic 1#CFAF79
Triadic 2#79CFAF
Tetradic#CF8479

RGB percentages

Red68.6%
Green47.5%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta41.5%
Yellow0.0%
Key (black)18.8%

Color previews

#af79cf text on a black background

contrast 6.46:1

Card sample

#af79cf text on a white background

contrast 3.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af79cf

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.

#af79cf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#af79cf, answered

What color is #af79cf?

#af79cf is a balanced vivid violet, closest to Medium Purple (ΔE2000 7.6). It sits at 278° on the hue wheel with 47% saturation and 64% lightness, which reads as cool.

What is the RGB value of #af79cf?

rgb(175, 121, 207) — 175 red, 121 green and 207 blue out of 255, or 68.6% / 47.5% / 81.2% by channel.

Is #af79cf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2729 and perceived brightness is 59%, so black text on it reaches 6.46:1.

Should I use black or white text on #af79cf?

Black. It scores 6.46:1 against #af79cf, versus 3.25:1 for white — AA at any size.

What is the complementary color of #af79cf?

#99CF79 sits directly opposite on the wheel. Softer options are the split-complements #C4CF79 and #79CF84, which give the same contrast with far less vibration.

What colors go well with #af79cf?

For interface work: #F8F4FA as the surface, #DBC3E9 for borders, #7D4B9B for secondary text, #729B31 as an accent and #47225E for hover and pressed states. For a palette, the analogous pair #8479CF and #CF79C4 stays calm, while #99CF79 is the loudest partner.

What is #af79cf in CMYK for printing?

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

Is #af79cf warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF79CF; nudged cooler, #8F77D1.

Work with #af79cf in the Color Lab