Skip to content

#af72ce

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

RGB
175, 114, 206
HSL
280°, 48%, 63%
CMYK
15, 45, 0, 19
Luminance
0.2560

At a glance

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

Hex
#af72ce
Hue
280°
violet
Saturation
48%
vivid
Lightness
63%
balanced
Brightness
81%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2560
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.12:1
Closest name
Medium Orchid
ΔE2000 6.8
Where it sits
Hue280° of 360°
Saturation48%
Lightness63%
Temperature
Warm ← → Cool61% 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#af72ce
RGBrgb(175, 114, 206)
HSLhsl(280, 48%, 63%)
CMYKcmyk(15%, 45%, 0%, 19%)
LABlab(57.7 40.3 -38.3)
LCHlch(57.7 55.6 316.5)
OKLCHoklch(0.651 0.146 313.5)
Decimal11498190
Display P3color(display-p3 0.686 0.447 0.808)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af72ce on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#af72ce on black: 6.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6087D1
deuteranopia · #708CCB
tritanopia · #AC8096

Color scale — 50 to 950

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

#F8F4FA
#F2EAF5
#E2D0EC
#D0ACE2
#af72ce
#A158C5
#8E3FB6
#763597
#5F2A79
#462258
#2C1537
Base = 400Lightest = 50 · #F8F4FADarkest = 950 · #2C1537
:root {
  --brand-50: #F8F4FA;
  --brand-100: #F2EAF5;
  --brand-200: #E2D0EC;
  --brand-300: #D0ACE2;
  --brand-400: #af72ce;
  --brand-500: #A158C5;
  --brand-600: #8E3FB6;
  --brand-700: #763597;
  --brand-800: #5F2A79;
  --brand-900: #462258;
  --brand-950: #2C1537;
  --brand: #af72ce;
  --brand-ink: #000000;
}

Colors that work with #af72ce

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#DDC2EA
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#709C30
Second voice, not a rival
Dark variant#4A215F
Hover, pressed, headers
Light variant#F4ECF8
Selected rows, tints
Dark surface#1F1424
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 #af72ce

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#91CE72
Analogous left#8172CE
Analogous right#CE72BF
Split-complement 1#BFCE72
Split-complement 2#72CE81
Triadic 1#CEAF72
Triadic 2#72CEAF
Tetradic#CE8172

RGB percentages

Red68.6%
Green44.7%
Blue80.8%

CMYK percentages

Cyan15.0%
Magenta44.7%
Yellow0.0%
Key (black)19.2%

Color previews

#af72ce text on a black background

contrast 6.12:1

Card sample

#af72ce text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af72ce

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.

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

#af72ce, answered

What color is #af72ce?

#af72ce is a balanced vivid violet, closest to Medium Orchid (ΔE2000 6.8). It sits at 280° on the hue wheel with 48% saturation and 63% lightness, which reads as cool.

What is the RGB value of #af72ce?

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

Is #af72ce a light or a dark color?

It is a mid-tone. Relative luminance is 0.2560 and perceived brightness is 58%, so black text on it reaches 6.12:1.

Should I use black or white text on #af72ce?

Black. It scores 6.12:1 against #af72ce, versus 3.43:1 for white — AA at any size.

What is the complementary color of #af72ce?

#91CE72 sits directly opposite on the wheel. Softer options are the split-complements #BFCE72 and #72CE81, which give the same contrast with far less vibration.

What colors go well with #af72ce?

For interface work: #F8F4FA as the surface, #DDC2EA for borders, #804B9B for secondary text, #709C30 as an accent and #4A215F for hover and pressed states. For a palette, the analogous pair #8172CE and #CE72BF stays calm, while #91CE72 is the loudest partner.

What is #af72ce in CMYK for printing?

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

Is #af72ce warm or cool?

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

Work with #af72ce in the Color Lab