Skip to content

#af72c6

a balanced, soft violet · cool · closest name: Medium Orchid

RGB
175, 114, 198
HSL
284°, 42%, 61%
CMYK
12, 42, 0, 22
Luminance
0.2523

At a glance

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

Hex
#af72c6
Hue
284°
violet
Saturation
42%
soft
Lightness
61%
balanced
Brightness
78%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2523
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.05:1
Closest name
Medium Orchid
ΔE2000 7.2
Where it sits
Hue284° of 360°
Saturation42%
Lightness61%
Temperature
Warm ← → Cool59% 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#af72c6
RGBrgb(175, 114, 198)
HSLhsl(284, 42%, 61%)
CMYKcmyk(12%, 42%, 0%, 22%)
LABlab(57.3 38.6 -34.3)
LCHlch(57.3 51.7 318.4)
OKLCHoklch(0.648 0.137 316.3)
Decimal11498182
Display P3color(display-p3 0.686 0.447 0.776)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af72c6 on white: 3.47:1
AA ✗ fail · AA-large · AAA
Aa
#af72c6 on black: 6.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6486C9
deuteranopia · #748BC4
tritanopia · #AE7D93

Color scale — 50 to 950

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

#F8F5FA
#F2EBF5
#E3D1EA
#D2AFDF
#BB87CF
#af72c6
#9247AE
#7A3B91
#612F74
#482555
#2D1735
Base = 500Lightest = 50 · #F8F5FADarkest = 950 · #2D1735
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F2EBF5;
  --brand-200: #E3D1EA;
  --brand-300: #D2AFDF;
  --brand-400: #BB87CF;
  --brand-500: #af72c6;
  --brand-600: #9247AE;
  --brand-700: #7A3B91;
  --brand-800: #612F74;
  --brand-900: #482555;
  --brand-950: #2D1735;
  --brand: #af72c6;
  --brand-ink: #000000;
}

Colors that work with #af72c6

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#F9F4FA
Tinted page background
Border#DEC5E7
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#689537
Second voice, not a rival
Dark variant#4C255B
Hover, pressed, headers
Light variant#F5EDF8
Selected rows, tints
Dark surface#201424
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 #af72c6

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#89C672
Analogous left#8572C6
Analogous right#C672B3
Split-complement 1#B3C672
Split-complement 2#72C685
Triadic 1#C6AF72
Triadic 2#72C6AF
Tetradic#C68572

RGB percentages

Red68.6%
Green44.7%
Blue77.6%

CMYK percentages

Cyan11.6%
Magenta42.4%
Yellow0.0%
Key (black)22.4%

Color previews

#af72c6 text on a black background

contrast 6.05:1

Card sample

#af72c6 text on a white background

contrast 3.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af72c6

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.

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

#af72c6, answered

What color is #af72c6?

#af72c6 is a balanced soft violet, closest to Medium Orchid (ΔE2000 7.2). It sits at 284° on the hue wheel with 42% saturation and 61% lightness, which reads as cool.

What is the RGB value of #af72c6?

rgb(175, 114, 198) — 175 red, 114 green and 198 blue out of 255, or 68.6% / 44.7% / 77.6% by channel.

Is #af72c6 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2523 and perceived brightness is 57%, so black text on it reaches 6.05:1.

Should I use black or white text on #af72c6?

Black. It scores 6.05:1 against #af72c6, versus 3.47:1 for white — AA at any size.

What is the complementary color of #af72c6?

#89C672 sits directly opposite on the wheel. Softer options are the split-complements #B3C672 and #72C685, which give the same contrast with far less vibration.

What colors go well with #af72c6?

For interface work: #F9F4FA as the surface, #DEC5E7 for borders, #854B9B for secondary text, #689537 as an accent and #4C255B for hover and pressed states. For a palette, the analogous pair #8572C6 and #C672B3 stays calm, while #89C672 is the loudest partner.

What is #af72c6 in CMYK for printing?

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

Is #af72c6 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C672BE; nudged cooler, #9070C8.

Work with #af72c6 in the Color Lab