Skip to content

#af70db

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

RGB
175, 112, 219
HSL
275°, 60%, 65%
CMYK
20, 49, 0, 14
Luminance
0.2582

At a glance

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

Hex
#af70db
Hue
275°
violet
Saturation
60%
vivid
Lightness
65%
balanced
Brightness
86%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2582
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.16:1
Closest name
Medium Purple
ΔE2000 5.9
Where it sits
Hue275° of 360°
Saturation60%
Lightness65%
Temperature
Warm ← → Cool64% 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#af70db
RGBrgb(175, 112, 219)
HSLhsl(275, 60%, 65%)
CMYKcmyk(20%, 49%, 0%, 14%)
LABlab(57.9 44.3 -45.3)
LCHlch(57.9 63.4 314.3)
OKLCHoklch(0.655 0.165 309.8)
Decimal11497691
Display P3color(display-p3 0.686 0.439 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af70db on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#af70db on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5588DF
deuteranopia · #678CD8
tritanopia · #A9829B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af70db 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
#F1E9F7
#E1CCEF
#CDA5E8
#af70db
#9B4CD2
#8731C4
#7129A3
#5A2182
#431C5F
#2A113B
Base = 400Lightest = 50 · #F8F4FBDarkest = 950 · #2A113B
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F1E9F7;
  --brand-200: #E1CCEF;
  --brand-300: #CDA5E8;
  --brand-400: #af70db;
  --brand-500: #9B4CD2;
  --brand-600: #8731C4;
  --brand-700: #7129A3;
  --brand-800: #5A2182;
  --brand-900: #431C5F;
  --brand-950: #2A113B;
  --brand: #af70db;
  --brand-ink: #000000;
}

Colors that work with #af70db

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#DAC0ED
Hairlines and dividers
Muted text#7A4B9B
Captions on the surface
Accent#7BA725
Second voice, not a rival
Dark variant#461A66
Hover, pressed, headers
Light variant#F4EBFA
Selected rows, tints
Dark surface#1E1424
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 #af70db

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#9CDB70
Analogous left#7970DB
Analogous right#DB70D2
Split-complement 1#D2DB70
Split-complement 2#70DB79
Triadic 1#DBAF70
Triadic 2#70DBAF
Tetradic#DB7970

RGB percentages

Red68.6%
Green43.9%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta48.9%
Yellow0.0%
Key (black)14.1%

Color previews

#af70db text on a black background

contrast 6.16:1

Card sample

#af70db text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af70db

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.

#af70db 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
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#af70db, answered

What color is #af70db?

#af70db is a balanced vivid violet, closest to Medium Purple (ΔE2000 5.9). It sits at 275° on the hue wheel with 60% saturation and 65% lightness, which reads as cool.

What is the RGB value of #af70db?

rgb(175, 112, 219) — 175 red, 112 green and 219 blue out of 255, or 68.6% / 43.9% / 85.9% by channel.

Is #af70db a light or a dark color?

It is a mid-tone. Relative luminance is 0.2582 and perceived brightness is 58%, so black text on it reaches 6.16:1.

Should I use black or white text on #af70db?

Black. It scores 6.16:1 against #af70db, versus 3.41:1 for white — AA at any size.

What is the complementary color of #af70db?

#9CDB70 sits directly opposite on the wheel. Softer options are the split-complements #D2DB70 and #70DB79, which give the same contrast with far less vibration.

What colors go well with #af70db?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #7A4B9B for secondary text, #7BA725 as an accent and #461A66 for hover and pressed states. For a palette, the analogous pair #7970DB and #DB70D2 stays calm, while #9CDB70 is the loudest partner.

What is #af70db in CMYK for printing?

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

Is #af70db warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D670DB; nudged cooler, #876EDD.

Work with #af70db in the Color Lab