Skip to content

#af73c9

a balanced, soft violet · cool · closest name: Medium Orchid

RGB
175, 115, 201
HSL
282°, 44%, 62%
CMYK
13, 43, 0, 21
Luminance
0.2559

At a glance

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

Hex
#af73c9
Hue
282°
violet
Saturation
44%
soft
Lightness
62%
balanced
Brightness
79%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2559
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.12:1
Closest name
Medium Orchid
ΔE2000 7.3
Where it sits
Hue282° of 360°
Saturation44%
Lightness62%
Temperature
Warm ← → Cool60% 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#af73c9
RGBrgb(175, 115, 201)
HSLhsl(282, 44%, 62%)
CMYKcmyk(13%, 43%, 0%, 21%)
LABlab(57.6 38.7 -35.5)
LCHlch(57.6 52.5 317.5)
OKLCHoklch(0.651 0.139 315.1)
Decimal11498441
Display P3color(display-p3 0.686 0.451 0.788)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af73c9 on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#af73c9 on black: 6.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6387CC
deuteranopia · #738CC7
tritanopia · #AE7F94

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af73c9 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
#F2EAF5
#E3D1EB
#D1AEE0
#af73c9
#A35DC1
#9044B1
#783993
#602D76
#472456
#2C1736
Base = 400Lightest = 50 · #F8F5FADarkest = 950 · #2C1736
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F2EAF5;
  --brand-200: #E3D1EB;
  --brand-300: #D1AEE0;
  --brand-400: #af73c9;
  --brand-500: #A35DC1;
  --brand-600: #9044B1;
  --brand-700: #783993;
  --brand-800: #602D76;
  --brand-900: #472456;
  --brand-950: #2C1736;
  --brand: #af73c9;
  --brand-ink: #000000;
}

Colors that work with #af73c9

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#F9F4FA
Tinted page background
Border#DDC4E8
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6B9735
Second voice, not a rival
Dark variant#4B245C
Hover, pressed, headers
Light variant#F4EDF8
Selected rows, tints
Dark surface#1F1424
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 #af73c9

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#8DC973
Analogous left#8473C9
Analogous right#C973B8
Split-complement 1#B8C973
Split-complement 2#73C984
Triadic 1#C9AF73
Triadic 2#73C9AF
Tetradic#C98473

RGB percentages

Red68.6%
Green45.1%
Blue78.8%

CMYK percentages

Cyan12.9%
Magenta42.8%
Yellow0.0%
Key (black)21.2%

Color previews

#af73c9 text on a black background

contrast 6.12:1

Card sample

#af73c9 text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af73c9

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.

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

#af73c9, answered

What color is #af73c9?

#af73c9 is a balanced soft violet, closest to Medium Orchid (ΔE2000 7.3). It sits at 282° on the hue wheel with 44% saturation and 62% lightness, which reads as cool.

What is the RGB value of #af73c9?

rgb(175, 115, 201) — 175 red, 115 green and 201 blue out of 255, or 68.6% / 45.1% / 78.8% by channel.

Is #af73c9 a light or a dark color?

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

Should I use black or white text on #af73c9?

Black. It scores 6.12:1 against #af73c9, versus 3.43:1 for white — AA at any size.

What is the complementary color of #af73c9?

#8DC973 sits directly opposite on the wheel. Softer options are the split-complements #B8C973 and #73C984, which give the same contrast with far less vibration.

What colors go well with #af73c9?

For interface work: #F9F4FA as the surface, #DDC4E8 for borders, #834B9B for secondary text, #6B9735 as an accent and #4B245C for hover and pressed states. For a palette, the analogous pair #8473C9 and #C973B8 stays calm, while #8DC973 is the loudest partner.

What is #af73c9 in CMYK for printing?

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

Is #af73c9 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C973C3; nudged cooler, #8F71CB.

Work with #af73c9 in the Color Lab