Skip to content

#af7fc9

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

RGB
175, 127, 201
HSL
279°, 41%, 64%
CMYK
13, 37, 0, 21
Luminance
0.2851

At a glance

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

Hex
#af7fc9
Hue
279°
violet
Saturation
41%
soft
Lightness
64%
balanced
Brightness
79%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2851
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.70:1
Closest name
Orchid
ΔE2000 8.7
Where it sits
Hue279° of 360°
Saturation41%
Lightness64%
Temperature
Warm ← → Cool62% 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#af7fc9
RGBrgb(175, 127, 201)
HSLhsl(279, 41%, 64%)
CMYKcmyk(13%, 37%, 0%, 21%)
LABlab(60.4 32.0 -31.3)
LCHlch(60.4 44.8 315.7)
OKLCHoklch(0.671 0.118 313.1)
Decimal11501513
Display P3color(display-p3 0.686 0.498 0.788)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7fc9 on white: 3.13:1
AA ✗ fail · AA-large · AAA
Aa
#af7fc9 on black: 6.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #728FCC
deuteranopia · #7E93C7
tritanopia · #AD899B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7fc9 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
#F1EBF5
#E1D2EA
#CEB0DE
#af7fc9
#9C61BC
#8949AC
#723C90
#5B3073
#442654
#2A1835
Base = 400Lightest = 50 · #F8F5FADarkest = 950 · #2A1835
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F1EBF5;
  --brand-200: #E1D2EA;
  --brand-300: #CEB0DE;
  --brand-400: #af7fc9;
  --brand-500: #9C61BC;
  --brand-600: #8949AC;
  --brand-700: #723C90;
  --brand-800: #5B3073;
  --brand-900: #442654;
  --brand-950: #2A1835;
  --brand: #af7fc9;
  --brand-ink: #000000;
}

Colors that work with #af7fc9

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#DBC6E7
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#6F9438
Second voice, not a rival
Dark variant#47265A
Hover, pressed, headers
Light variant#F4EDF7
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 #af7fc9

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#99C97F
Analogous left#8A7FC9
Analogous right#C97FBE
Split-complement 1#BEC97F
Split-complement 2#7FC98A
Triadic 1#C9AF7F
Triadic 2#7FC9AF
Tetradic#C98A7F

RGB percentages

Red68.6%
Green49.8%
Blue78.8%

CMYK percentages

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

Color previews

#af7fc9 text on a black background

contrast 6.70:1

Card sample

#af7fc9 text on a white background

contrast 3.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7fc9

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.

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

#af7fc9, answered

What color is #af7fc9?

#af7fc9 is a balanced soft violet, closest to Orchid (ΔE2000 8.7). It sits at 279° on the hue wheel with 41% saturation and 64% lightness, which reads as cool.

What is the RGB value of #af7fc9?

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

Is #af7fc9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2851 and perceived brightness is 60%, so black text on it reaches 6.70:1.

Should I use black or white text on #af7fc9?

Black. It scores 6.70:1 against #af7fc9, versus 3.13:1 for white — AA at any size.

What is the complementary color of #af7fc9?

#99C97F sits directly opposite on the wheel. Softer options are the split-complements #BEC97F and #7FC98A, which give the same contrast with far less vibration.

What colors go well with #af7fc9?

For interface work: #F8F4FA as the surface, #DBC6E7 for borders, #7F4B9B for secondary text, #6F9438 as an accent and #47265A for hover and pressed states. For a palette, the analogous pair #8A7FC9 and #C97FBE stays calm, while #99C97F is the loudest partner.

What is #af7fc9 in CMYK for printing?

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

Is #af7fc9 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C97FC8; nudged cooler, #937DCB.

Work with #af7fc9 in the Color Lab