Skip to content

#af8ad4

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

RGB
175, 138, 212
HSL
270°, 46%, 69%
CMYK
18, 35, 0, 17
Luminance
0.3204

At a glance

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

Hex
#af8ad4
Hue
270°
violet
Saturation
46%
vivid
Lightness
69%
light
Brightness
83%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3204
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.41:1
Closest name
Medium Purple
ΔE2000 10
Where it sits
Hue270° of 360°
Saturation46%
Lightness69%
Temperature
Warm ← → Cool67% 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#af8ad4
RGBrgb(175, 138, 212)
HSLhsl(270, 46%, 69%)
CMYKcmyk(18%, 35%, 0%, 17%)
LABlab(63.4 28.3 -32.8)
LCHlch(63.4 43.3 310.8)
OKLCHoklch(0.696 0.113 306.6)
Decimal11504340
Display P3color(display-p3 0.686 0.541 0.831)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8ad4 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#af8ad4 on black: 7.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7B98D7
deuteranopia · #839AD2
tritanopia · #AA95A5

Color scale — 50 to 950

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

#F7F5FA
#F0EAF5
#DED0EB
#C7ADE1
#af8ad4
#8F5BC3
#7A42B3
#663795
#522C77
#3D2357
#261637
Base = 400Lightest = 50 · #F7F5FADarkest = 950 · #261637
:root {
  --brand-50: #F7F5FA;
  --brand-100: #F0EAF5;
  --brand-200: #DED0EB;
  --brand-300: #C7ADE1;
  --brand-400: #af8ad4;
  --brand-500: #8F5BC3;
  --brand-600: #7A42B3;
  --brand-700: #663795;
  --brand-800: #522C77;
  --brand-900: #3D2357;
  --brand-950: #261637;
  --brand: #af8ad4;
  --brand-ink: #000000;
}

Colors that work with #af8ad4

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#F7F4FA
Tinted page background
Border#D6C3E9
Hairlines and dividers
Muted text#734B9B
Captions on the surface
Accent#809933
Second voice, not a rival
Dark variant#40225D
Hover, pressed, headers
Light variant#F2ECF8
Selected rows, tints
Dark surface#1C1424
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 #af8ad4

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#AFD48A
Analogous left#8A8AD4
Analogous right#D48AD4
Split-complement 1#D4D48A
Split-complement 2#8AD48A
Triadic 1#D4AF8A
Triadic 2#8AD4AF
Tetradic#D48A8A

RGB percentages

Red68.6%
Green54.1%
Blue83.1%

CMYK percentages

Cyan17.5%
Magenta34.9%
Yellow0.0%
Key (black)16.9%

Color previews

#af8ad4 text on a black background

contrast 7.41:1

Card sample

#af8ad4 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8ad4

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.

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

#af8ad4, answered

What color is #af8ad4?

#af8ad4 is a light vivid violet, closest to Medium Purple (ΔE2000 10). It sits at 270° on the hue wheel with 46% saturation and 69% lightness, which reads as cool.

What is the RGB value of #af8ad4?

rgb(175, 138, 212) — 175 red, 138 green and 212 blue out of 255, or 68.6% / 54.1% / 83.1% by channel.

Is #af8ad4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3204 and perceived brightness is 63%, so black text on it reaches 7.41:1.

Should I use black or white text on #af8ad4?

Black. It scores 7.41:1 against #af8ad4, versus 2.83:1 for white — AAA at any size.

What is the complementary color of #af8ad4?

#AFD48A sits directly opposite on the wheel. Softer options are the split-complements #D4D48A and #8AD48A, which give the same contrast with far less vibration.

What colors go well with #af8ad4?

For interface work: #F7F4FA as the surface, #D6C3E9 for borders, #734B9B for secondary text, #809933 as an accent and #40225D for hover and pressed states. For a palette, the analogous pair #8A8AD4 and #D48AD4 stays calm, while #AFD48A is the loudest partner.

What is #af8ad4 in CMYK for printing?

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

Is #af8ad4 warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CA8AD4; nudged cooler, #9388D6.

Work with #af8ad4 in the Color Lab