Skip to content

#af85d7

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

RGB
175, 133, 215
HSL
271°, 51%, 68%
CMYK
19, 38, 0, 16
Luminance
0.3080

At a glance

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

Hex
#af85d7
Hue
271°
violet
Saturation
51%
vivid
Lightness
68%
light
Brightness
84%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3080
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.16:1
Closest name
Medium Purple
ΔE2000 8.6
Where it sits
Hue271° of 360°
Saturation51%
Lightness68%
Temperature
Warm ← → Cool66% 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#af85d7
RGBrgb(175, 133, 215)
HSLhsl(271, 51%, 68%)
CMYKcmyk(19%, 38%, 0%, 16%)
LABlab(62.3 31.8 -36.1)
LCHlch(62.3 48.0 311.4)
OKLCHoklch(0.688 0.125 306.9)
Decimal11503063
Display P3color(display-p3 0.686 0.522 0.843)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af85d7 on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#af85d7 on black: 7.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7395DA
deuteranopia · #7D97D5
tritanopia · #A991A4

Color scale — 50 to 950

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

#F7F4FA
#F0EAF6
#DECFED
#C8ABE3
#af85d7
#9056C8
#7C3CB8
#67329A
#53287B
#3E215A
#271438
Base = 400Lightest = 50 · #F7F4FADarkest = 950 · #271438
:root {
  --brand-50: #F7F4FA;
  --brand-100: #F0EAF6;
  --brand-200: #DECFED;
  --brand-300: #C8ABE3;
  --brand-400: #af85d7;
  --brand-500: #9056C8;
  --brand-600: #7C3CB8;
  --brand-700: #67329A;
  --brand-800: #53287B;
  --brand-900: #3E215A;
  --brand-950: #271438;
  --brand: #af85d7;
  --brand-ink: #000000;
}

Colors that work with #af85d7

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#D7C2EB
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#809D2F
Second voice, not a rival
Dark variant#411F60
Hover, pressed, headers
Light variant#F2ECF9
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 #af85d7

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#ADD785
Analogous left#8685D7
Analogous right#D785D6
Split-complement 1#D6D785
Split-complement 2#85D786
Triadic 1#D7AF85
Triadic 2#85D7AF
Tetradic#D78685

RGB percentages

Red68.6%
Green52.2%
Blue84.3%

CMYK percentages

Cyan18.6%
Magenta38.1%
Yellow0.0%
Key (black)15.7%

Color previews

#af85d7 text on a black background

contrast 7.16:1

Card sample

#af85d7 text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af85d7

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.

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

#af85d7, answered

What color is #af85d7?

#af85d7 is a light vivid violet, closest to Medium Purple (ΔE2000 8.6). It sits at 271° on the hue wheel with 51% saturation and 68% lightness, which reads as cool.

What is the RGB value of #af85d7?

rgb(175, 133, 215) — 175 red, 133 green and 215 blue out of 255, or 68.6% / 52.2% / 84.3% by channel.

Is #af85d7 a light or a dark color?

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

Should I use black or white text on #af85d7?

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

What is the complementary color of #af85d7?

#ADD785 sits directly opposite on the wheel. Softer options are the split-complements #D6D785 and #85D786, which give the same contrast with far less vibration.

What colors go well with #af85d7?

For interface work: #F7F4FA as the surface, #D7C2EB for borders, #744B9B for secondary text, #809D2F as an accent and #411F60 for hover and pressed states. For a palette, the analogous pair #8685D7 and #D785D6 stays calm, while #ADD785 is the loudest partner.

What is #af85d7 in CMYK for printing?

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

Is #af85d7 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD85D7; nudged cooler, #9083D9.

Work with #af85d7 in the Color Lab