Skip to content

#ae87cf

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

RGB
174, 135, 207
HSL
273°, 43%, 67%
CMYK
16, 35, 0, 19
Luminance
0.3083

At a glance

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

Hex
#ae87cf
Hue
273°
violet
Saturation
43%
soft
Lightness
67%
light
Brightness
81%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3083
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
7.17:1
Closest name
Medium Purple
ΔE2000 9.8
Where it sits
Hue273° of 360°
Saturation43%
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#ae87cf
RGBrgb(174, 135, 207)
HSLhsl(273, 43%, 67%)
CMYKcmyk(16%, 35%, 0%, 19%)
LABlab(62.4 28.6 -31.6)
LCHlch(62.4 42.5 312.1)
OKLCHoklch(0.687 0.111 308.5)
Decimal11438031
Display P3color(display-p3 0.682 0.529 0.812)

Copy-ready code

/* CSS */
color: #ae87cf;
background-color: #ae87cf;
/* Tailwind (arbitrary) */
class="text-[#ae87cf] bg-[#ae87cf]"
/* SCSS */
$brand: #ae87cf;
/* SwiftUI */
Color(red: 0.682, green: 0.529, blue: 0.812)
/* Android */
Color.parseColor("#ae87cf")
/* Flutter */
Color(0xFFAE87CF)
/* Python / OpenCV (BGR) */
(207, 135, 174)

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 #ae87cf · 7.17:1
Use #000000AAA at every size.
Aa
White text · 2.93:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.17:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ae87cf as text scores 2.93:1 on white and 7.17:1 on black.

Accessibility — WCAG contrast

Aa
#ae87cf on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#ae87cf on black: 7.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7995D2
deuteranopia · #8297CD
tritanopia · #AA91A2

Color scale — 50 to 950

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

#F8F5FA
#F0EBF5
#DFD1EA
#C9AFDF
#ae87cf
#935FBF
#7F46AF
#6A3A92
#552F75
#3F2555
#281735
Base = 400Lightest = 50 · #F8F5FADarkest = 950 · #281735
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F0EBF5;
  --brand-200: #DFD1EA;
  --brand-300: #C9AFDF;
  --brand-400: #ae87cf;
  --brand-500: #935FBF;
  --brand-600: #7F46AF;
  --brand-700: #6A3A92;
  --brand-800: #552F75;
  --brand-900: #3F2555;
  --brand-950: #281735;
  --brand: #ae87cf;
  --brand-ink: #000000;
}

Colors that work with #ae87cf

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#D8C5E8
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#799537
Second voice, not a rival
Dark variant#42245B
Hover, pressed, headers
Light variant#F3EDF8
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 #ae87cf

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#A8CF87
Analogous left#8A87CF
Analogous right#CF87CC
Split-complement 1#CCCF87
Split-complement 2#87CF8A
Triadic 1#CFAE87
Triadic 2#87CFAE
Tetradic#CF8A87

RGB percentages

Red68.2%
Green52.9%
Blue81.2%

CMYK percentages

Cyan15.9%
Magenta34.8%
Yellow0.0%
Key (black)18.8%

Color previews

#ae87cf text on a black background

contrast 7.17:1

Card sample

#ae87cf text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(174, 135, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(174, 135, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ae87cf;
background: linear-gradient(135deg, #ae87cf, #CF87C0);

Monochromatic scale

Palettes built from #ae87cf

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.

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

#ae87cf, answered

What color is #ae87cf?

#ae87cf is a light soft violet, closest to Medium Purple (ΔE2000 9.8). It sits at 273° on the hue wheel with 43% saturation and 67% lightness, which reads as cool.

What is the RGB value of #ae87cf?

rgb(174, 135, 207) — 174 red, 135 green and 207 blue out of 255, or 68.2% / 52.9% / 81.2% by channel.

Is #ae87cf a light or a dark color?

It is a mid-tone. Relative luminance is 0.3083 and perceived brightness is 62%, so black text on it reaches 7.17:1.

Should I use black or white text on #ae87cf?

Black. It scores 7.17:1 against #ae87cf, versus 2.93:1 for white — AAA at any size.

What is the complementary color of #ae87cf?

#A8CF87 sits directly opposite on the wheel. Softer options are the split-complements #CCCF87 and #87CF8A, which give the same contrast with far less vibration.

What colors go well with #ae87cf?

For interface work: #F8F4FA as the surface, #D8C5E8 for borders, #764B9B for secondary text, #799537 as an accent and #42245B for hover and pressed states. For a palette, the analogous pair #8A87CF and #CF87CC stays calm, while #A8CF87 is the loudest partner.

What is #ae87cf in CMYK for printing?

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

Is #ae87cf 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 #C887CF; nudged cooler, #9385D1.

Work with #ae87cf in the Color Lab