Skip to content

#af7add

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

RGB
175, 122, 221
HSL
272°, 59%, 67%
CMYK
21, 45, 0, 13
Luminance
0.2825

At a glance

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

Hex
#af7add
Hue
272°
violet
Saturation
59%
vivid
Lightness
67%
light
Brightness
87%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2825
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.65:1
Closest name
Medium Purple
ΔE2000 6.4
Where it sits
Hue272° of 360°
Saturation59%
Lightness67%
Temperature
Warm ← → Cool65% 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#af7add
RGBrgb(175, 122, 221)
HSLhsl(272, 59%, 67%)
CMYKcmyk(21%, 45%, 0%, 13%)
LABlab(60.1 39.2 -42.9)
LCHlch(60.1 58.1 312.5)
OKLCHoklch(0.672 0.151 307.5)
Decimal11500253
Display P3color(display-p3 0.686 0.478 0.867)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7add on white: 3.16:1
AA ✗ fail · AA-large · AAA
Aa
#af7add on black: 6.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #628FE1
deuteranopia · #6F91DA
tritanopia · #A88AA1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7add 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
#F0E9F7
#DFCDEF
#C9A6E8
#af7add
#934CD1
#7F32C3
#6A2AA2
#552182
#401C5F
#28113B
Base = 400Lightest = 50 · #F8F4FBDarkest = 950 · #28113B
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F0E9F7;
  --brand-200: #DFCDEF;
  --brand-300: #C9A6E8;
  --brand-400: #af7add;
  --brand-500: #934CD1;
  --brand-600: #7F32C3;
  --brand-700: #6A2AA2;
  --brand-800: #552182;
  --brand-900: #401C5F;
  --brand-950: #28113B;
  --brand: #af7add;
  --brand-ink: #000000;
}

Colors that work with #af7add

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#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#82A626
Second voice, not a rival
Dark variant#421A66
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 #af7add

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#A8DD7A
Analogous left#7E7ADD
Analogous right#DD7ADA
Split-complement 1#DADD7A
Split-complement 2#7ADD7E
Triadic 1#DDAF7A
Triadic 2#7ADDAF
Tetradic#DD7E7A

RGB percentages

Red68.6%
Green47.8%
Blue86.7%

CMYK percentages

Cyan20.8%
Magenta44.8%
Yellow0.0%
Key (black)13.3%

Color previews

#af7add text on a black background

contrast 6.65:1

Card sample

#af7add text on a white background

contrast 3.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7add

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.

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

#af7add, answered

What color is #af7add?

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

What is the RGB value of #af7add?

rgb(175, 122, 221) — 175 red, 122 green and 221 blue out of 255, or 68.6% / 47.8% / 86.7% by channel.

Is #af7add a light or a dark color?

It is a mid-tone. Relative luminance is 0.2825 and perceived brightness is 60%, so black text on it reaches 6.65:1.

Should I use black or white text on #af7add?

Black. It scores 6.65:1 against #af7add, versus 3.16:1 for white — AA at any size.

What is the complementary color of #af7add?

#A8DD7A sits directly opposite on the wheel. Softer options are the split-complements #DADD7A and #7ADD7E, which give the same contrast with far less vibration.

What colors go well with #af7add?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #82A626 as an accent and #421A66 for hover and pressed states. For a palette, the analogous pair #7E7ADD and #DD7ADA stays calm, while #A8DD7A is the loudest partner.

What is #af7add in CMYK for printing?

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

Is #af7add warm or cool?

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

Work with #af7add in the Color Lab