Skip to content

#af99df

a light, vivid violet · cool · closest name: Plum

RGB
175, 153, 223
HSL
259°, 52%, 74%
CMYK
22, 31, 0, 13
Luminance
0.3722

At a glance

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

Hex
#af99df
Hue
259°
violet
Saturation
52%
vivid
Lightness
74%
light
Brightness
87%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3722
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
8.44:1
Closest name
Plum
ΔE2000 10.8
Where it sits
Hue259° of 360°
Saturation52%
Lightness74%
Temperature
Warm ← → Cool73% 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#af99df
RGBrgb(175, 153, 223)
HSLhsl(259, 52%, 74%)
CMYKcmyk(22%, 31%, 0%, 13%)
LABlab(67.4 22.3 -32.6)
LCHlch(67.4 39.5 304.4)
OKLCHoklch(0.728 0.102 298.3)
Decimal11508191
Display P3color(display-p3 0.686 0.600 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af99df on white: 2.49:1
AA ✗ fail · AA-large · AAA
Aa
#af99df on black: 8.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #89A4E2
deuteranopia · #8CA4DD
tritanopia · #A6A4B2

Color scale — 50 to 950

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

#F6F4FA
#EDE9F6
#D8CFED
#af99df
#9B7FD7
#7954C9
#633BBA
#52319B
#42277C
#32205B
#1F1439
Base = 300Lightest = 50 · #F6F4FADarkest = 950 · #1F1439
:root {
  --brand-50: #F6F4FA;
  --brand-100: #EDE9F6;
  --brand-200: #D8CFED;
  --brand-300: #af99df;
  --brand-400: #9B7FD7;
  --brand-500: #7954C9;
  --brand-600: #633BBA;
  --brand-700: #52319B;
  --brand-800: #42277C;
  --brand-900: #32205B;
  --brand-950: #1F1439;
  --brand: #af99df;
  --brand-ink: #000000;
}

Colors that work with #af99df

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#F6F4FA
Tinted page background
Border#CEC1EB
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#98A02C
Second voice, not a rival
Dark variant#331E61
Hover, pressed, headers
Light variant#F0ECF9
Selected rows, tints
Dark surface#191424
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 #af99df

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#C9DF99
Analogous left#99A6DF
Analogous right#D299DF
Split-complement 1#DFD299
Split-complement 2#A6DF99
Triadic 1#DFAF99
Triadic 2#99DFAF
Tetradic#DF99A6

RGB percentages

Red68.6%
Green60.0%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta31.4%
Yellow0.0%
Key (black)12.5%

Color previews

#af99df text on a black background

contrast 8.44:1

Card sample

#af99df text on a white background

contrast 2.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af99df

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.

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

#af99df, answered

What color is #af99df?

#af99df is a light vivid violet, closest to Plum (ΔE2000 10.8). It sits at 259° on the hue wheel with 52% saturation and 74% lightness, which reads as cool.

What is the RGB value of #af99df?

rgb(175, 153, 223) — 175 red, 153 green and 223 blue out of 255, or 68.6% / 60% / 87.5% by channel.

Is #af99df a light or a dark color?

It is a mid-tone. Relative luminance is 0.3722 and perceived brightness is 66%, so black text on it reaches 8.44:1.

Should I use black or white text on #af99df?

Black. It scores 8.44:1 against #af99df, versus 2.49:1 for white — AAA at any size.

What is the complementary color of #af99df?

#C9DF99 sits directly opposite on the wheel. Softer options are the split-complements #DFD299 and #A6DF99, which give the same contrast with far less vibration.

What colors go well with #af99df?

For interface work: #F6F4FA as the surface, #CEC1EB for borders, #644B9B for secondary text, #98A02C as an accent and #331E61 for hover and pressed states. For a palette, the analogous pair #99A6DF and #D299DF stays calm, while #C9DF99 is the loudest partner.

What is #af99df in CMYK for printing?

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

Is #af99df warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C999DF; nudged cooler, #989BE0.

Work with #af99df in the Color Lab