Skip to content

#af72db

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

RGB
175, 114, 219
HSL
275°, 59%, 65%
CMYK
20, 48, 0, 14
Luminance
0.2626

At a glance

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

Hex
#af72db
Hue
275°
violet
Saturation
59%
vivid
Lightness
65%
light
Brightness
86%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2626
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.25:1
Closest name
Medium Purple
ΔE2000 5.9
Where it sits
Hue275° of 360°
Saturation59%
Lightness65%
Temperature
Warm ← → Cool64% 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#af72db
RGBrgb(175, 114, 219)
HSLhsl(275, 59%, 65%)
CMYKcmyk(20%, 48%, 0%, 14%)
LABlab(58.3 43.2 -44.7)
LCHlch(58.3 62.1 314.0)
OKLCHoklch(0.658 0.161 309.4)
Decimal11498203
Display P3color(display-p3 0.686 0.447 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af72db on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#af72db on black: 6.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5889DF
deuteranopia · #698DD8
tritanopia · #A9839C

Color scale — 50 to 950

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

#F8F4FB
#F1E9F7
#E1CDEF
#CCA6E8
#af72db
#9A4CD1
#8632C3
#702AA2
#5A2182
#431C5F
#2A113B
Base = 400Lightest = 50 · #F8F4FBDarkest = 950 · #2A113B
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F1E9F7;
  --brand-200: #E1CDEF;
  --brand-300: #CCA6E8;
  --brand-400: #af72db;
  --brand-500: #9A4CD1;
  --brand-600: #8632C3;
  --brand-700: #702AA2;
  --brand-800: #5A2182;
  --brand-900: #431C5F;
  --brand-950: #2A113B;
  --brand: #af72db;
  --brand-ink: #000000;
}

Colors that work with #af72db

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#DAC0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#7BA725
Second voice, not a rival
Dark variant#461A66
Hover, pressed, headers
Light variant#F3EBFA
Selected rows, tints
Dark surface#1D1424
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 #af72db

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White 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#9EDB72
Analogous left#7B72DB
Analogous right#DB72D2
Split-complement 1#D2DB72
Split-complement 2#72DB7B
Triadic 1#DBAF72
Triadic 2#72DBAF
Tetradic#DB7B72

RGB percentages

Red68.6%
Green44.7%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta47.9%
Yellow0.0%
Key (black)14.1%

Color previews

#af72db text on a black background

contrast 6.25:1

Card sample

#af72db text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af72db

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.

#af72db 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#af72db, answered

What color is #af72db?

#af72db is a light vivid violet, closest to Medium Purple (ΔE2000 5.9). It sits at 275° on the hue wheel with 59% saturation and 65% lightness, which reads as cool.

What is the RGB value of #af72db?

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

Is #af72db a light or a dark color?

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

Should I use black or white text on #af72db?

Black. It scores 6.25:1 against #af72db, versus 3.36:1 for white — AA at any size.

What is the complementary color of #af72db?

#9EDB72 sits directly opposite on the wheel. Softer options are the split-complements #D2DB72 and #72DB7B, which give the same contrast with far less vibration.

What colors go well with #af72db?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #7BA725 as an accent and #461A66 for hover and pressed states. For a palette, the analogous pair #7B72DB and #DB72D2 stays calm, while #9EDB72 is the loudest partner.

What is #af72db in CMYK for printing?

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

Is #af72db warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D672DB; nudged cooler, #8870DD.

Work with #af72db in the Color Lab