Skip to content

#af16d2

a balanced, electric violet · neutral · closest name: Dark Orchid

RGB
175, 22, 210
HSL
289°, 81%, 46%
CMYK
17, 90, 0, 18
Luminance
0.1434

At a glance

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

Hex
#af16d2
Hue
289°
violet
Saturation
81%
electric
Lightness
46%
balanced
Brightness
82%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1434
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.43:1
Closest name
Dark Orchid
ΔE2000 3.6
Where it sits
Hue289° of 360°
Saturation81%
Lightness46%
Temperature
Warm ← → Cool56% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af16d2
RGBrgb(175, 22, 210)
HSLhsl(289, 81%, 46%)
CMYKcmyk(17%, 90%, 0%, 18%)
LABlab(44.7 77.2 -61.2)
LCHlch(44.7 98.5 321.6)
OKLCHoklch(0.558 0.260 318.4)
Decimal11474642
Display P3color(display-p3 0.686 0.086 0.824)

Copy-ready code

/* CSS */
color: #af16d2;
background-color: #af16d2;
/* Tailwind (arbitrary) */
class="text-[#af16d2] bg-[#af16d2]"
/* SCSS */
$brand: #af16d2;
/* SwiftUI */
Color(red: 0.686, green: 0.086, blue: 0.824)
/* Android */
Color.parseColor("#af16d2")
/* Flutter */
Color(0xFFAF16D2)
/* Python / OpenCV (BGR) */
(210, 22, 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#ffffff on #af16d2 · 5.43:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.43:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.87:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af16d2 as text scores 5.43:1 on white and 3.87:1 on black.

Accessibility — WCAG contrast

Aa
#af16d2 on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#af16d2 on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061D6
deuteranopia · #246ECE
tritanopia · #AE4A7D

Color scale — 50 to 950

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

#FAF3FC
#F6E6F9
#EDC6F5
#E399F4
#D667EF
#C834EA
#af16d2
#9A13B9
#7B1094
#5A106B
#380A43
Base = 600Lightest = 50 · #FAF3FCDarkest = 950 · #380A43
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F6E6F9;
  --brand-200: #EDC6F5;
  --brand-300: #E399F4;
  --brand-400: #D667EF;
  --brand-500: #C834EA;
  --brand-600: #af16d2;
  --brand-700: #9A13B9;
  --brand-800: #7B1094;
  --brand-900: #5A106B;
  --brand-950: #380A43;
  --brand: #af16d2;
  --brand-ink: #ffffff;
}

Colors that work with #af16d2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#E4C0ED
Hairlines and dividers
Muted text#8C4B9B
Captions on the surface
Accent#5CBD0F
Second voice, not a rival
Dark variant#600C73
Hover, pressed, headers
Light variant#F9E8FD
Selected rows, tints
Dark surface#211424
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 #af16d2

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#39D216
Analogous left#5116D2
Analogous right#D21697
Split-complement 1#97D216
Split-complement 2#16D251
Triadic 1#D2AF16
Triadic 2#16D2AF
Tetradic#D25116

RGB percentages

Red68.6%
Green8.6%
Blue82.4%

CMYK percentages

Cyan16.7%
Magenta89.5%
Yellow0.0%
Key (black)17.6%

Color previews

#af16d2 text on a black background

contrast 3.87:1

Card sample

#af16d2 text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af16d2

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.

#af16d2 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af16d2, answered

What color is #af16d2?

#af16d2 is a balanced electric violet, closest to Dark Orchid (ΔE2000 3.6). It sits at 289° on the hue wheel with 81% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #af16d2?

rgb(175, 22, 210) — 175 red, 22 green and 210 blue out of 255, or 68.6% / 8.6% / 82.4% by channel.

Is #af16d2 a light or a dark color?

It is a dark color. Relative luminance is 0.1434 and perceived brightness is 47%, so white text on it reaches 5.43:1.

Should I use black or white text on #af16d2?

White. It scores 5.43:1 against #af16d2, versus 3.87:1 for black — AA at any size.

What is the complementary color of #af16d2?

#39D216 sits directly opposite on the wheel. Softer options are the split-complements #97D216 and #16D251, which give the same contrast with far less vibration.

What colors go well with #af16d2?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8C4B9B for secondary text, #5CBD0F as an accent and #600C73 for hover and pressed states. For a palette, the analogous pair #5116D2 and #D21697 stays calm, while #39D216 is the loudest partner.

What is #af16d2 in CMYK for printing?

cmyk(17%, 90%, 0%, 18%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af16d2 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D216B0; nudged cooler, #6A14D4.

Work with #af16d2 in the Color Lab