Skip to content

#af3fd9

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

RGB
175, 63, 217
HSL
284°, 67%, 55%
CMYK
19, 71, 0, 15
Luminance
0.1768

At a glance

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

Hex
#af3fd9
Hue
284°
violet
Saturation
67%
vivid
Lightness
55%
balanced
Brightness
85%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1768
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.63:1
Closest name
Medium Orchid
ΔE2000 5.5
Where it sits
Hue284° of 360°
Saturation67%
Lightness55%
Temperature
Warm ← → Cool59% 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#af3fd9
RGBrgb(175, 63, 217)
HSLhsl(284, 67%, 55%)
CMYKcmyk(19%, 71%, 0%, 15%)
LABlab(49.1 67.1 -58.2)
LCHlch(49.1 88.8 319.1)
OKLCHoklch(0.591 0.232 315.1)
Decimal11485145
Display P3color(display-p3 0.686 0.247 0.851)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3fd9 on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#af3fd9 on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EDD
deuteranopia · #3A78D6
tritanopia · #AC5F88

Color scale — 50 to 950

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

#F9F3FB
#F3E8F8
#E7CAF1
#D8A1EC
#C472E3
#af3fd9
#A028CC
#8522AA
#6A1B88
#4E1763
#310F3E
Base = 500Lightest = 50 · #F9F3FBDarkest = 950 · #310F3E
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F3E8F8;
  --brand-200: #E7CAF1;
  --brand-300: #D8A1EC;
  --brand-400: #C472E3;
  --brand-500: #af3fd9;
  --brand-600: #A028CC;
  --brand-700: #8522AA;
  --brand-800: #6A1B88;
  --brand-900: #4E1763;
  --brand-950: #310F3E;
  --brand: #af3fd9;
  --brand-ink: #ffffff;
}

Colors that work with #af3fd9

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#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6AAF1D
Second voice, not a rival
Dark variant#53156A
Hover, pressed, headers
Light variant#F6EAFB
Selected rows, tints
Dark surface#201424
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 #af3fd9

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

Works well for
  • Body text and links 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
  • 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#69D93F
Analogous left#623FD9
Analogous right#D93FB6
Split-complement 1#B6D93F
Split-complement 2#3FD962
Triadic 1#D9AF3F
Triadic 2#3FD9AF
Tetradic#D9623F

RGB percentages

Red68.6%
Green24.7%
Blue85.1%

CMYK percentages

Cyan19.4%
Magenta71.0%
Yellow0.0%
Key (black)14.9%

Color previews

#af3fd9 text on a black background

contrast 4.54:1

Card sample

#af3fd9 text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3fd9

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.

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

#af3fd9, answered

What color is #af3fd9?

#af3fd9 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.5). It sits at 284° on the hue wheel with 67% saturation and 55% lightness, which reads as cool.

What is the RGB value of #af3fd9?

rgb(175, 63, 217) — 175 red, 63 green and 217 blue out of 255, or 68.6% / 24.7% / 85.1% by channel.

Is #af3fd9 a light or a dark color?

It is a dark color. Relative luminance is 0.1768 and perceived brightness is 51%, so white text on it reaches 4.63:1.

Should I use black or white text on #af3fd9?

White. It scores 4.63:1 against #af3fd9, versus 4.54:1 for black — AA at any size.

What is the complementary color of #af3fd9?

#69D93F sits directly opposite on the wheel. Softer options are the split-complements #B6D93F and #3FD962, which give the same contrast with far less vibration.

What colors go well with #af3fd9?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6AAF1D as an accent and #53156A for hover and pressed states. For a palette, the analogous pair #623FD9 and #D93FB6 stays calm, while #69D93F is the loudest partner.

What is #af3fd9 in CMYK for printing?

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

Is #af3fd9 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D93FCB; nudged cooler, #763DDB.

Work with #af3fd9 in the Color Lab