Skip to content

#af5cc7

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

RGB
175, 92, 199
HSL
287°, 49%, 57%
CMYK
12, 54, 0, 22
Luminance
0.2089

At a glance

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

Hex
#af5cc7
Hue
287°
violet
Saturation
49%
vivid
Lightness
57%
balanced
Brightness
78%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2089
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.18:1
Closest name
Medium Orchid
ΔE2000 2.6
Where it sits
Hue287° of 360°
Saturation49%
Lightness57%
Temperature
Warm ← → Cool58% 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#af5cc7
RGBrgb(175, 92, 199)
HSLhsl(287, 49%, 57%)
CMYKcmyk(12%, 54%, 0%, 22%)
LABlab(52.8 50.5 -41.9)
LCHlch(52.8 65.6 320.3)
OKLCHoklch(0.615 0.175 318.2)
Decimal11492551
Display P3color(display-p3 0.686 0.361 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5cc7 on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#af5cc7 on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4679CB
deuteranopia · #6181C4
tritanopia · #AF6C89

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5cc7 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.

#F9F4FA
#F3EAF6
#E6D0EC
#D6ABE2
#C182D4
#af5cc7
#9B3FB6
#813498
#682A7A
#4C2259
#301537
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #301537
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F3EAF6;
  --brand-200: #E6D0EC;
  --brand-300: #D6ABE2;
  --brand-400: #C182D4;
  --brand-500: #af5cc7;
  --brand-600: #9B3FB6;
  --brand-700: #813498;
  --brand-800: #682A7A;
  --brand-900: #4C2259;
  --brand-950: #301537;
  --brand: #af5cc7;
  --brand-ink: #000000;
}

Colors that work with #af5cc7

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#E1C2EA
Hairlines and dividers
Muted text#894B9B
Captions on the surface
Accent#649C30
Second voice, not a rival
Dark variant#51215F
Hover, pressed, headers
Light variant#F6ECF8
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 #af5cc7

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#74C75C
Analogous left#7A5CC7
Analogous right#C75CAA
Split-complement 1#AAC75C
Split-complement 2#5CC77A
Triadic 1#C7AF5C
Triadic 2#5CC7AF
Tetradic#C77A5C

RGB percentages

Red68.6%
Green36.1%
Blue78.0%

CMYK percentages

Cyan12.1%
Magenta53.8%
Yellow0.0%
Key (black)22.0%

Color previews

#af5cc7 text on a black background

contrast 5.18:1

Card sample

#af5cc7 text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5cc7

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.

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

#af5cc7, answered

What color is #af5cc7?

#af5cc7 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 2.6). It sits at 287° on the hue wheel with 49% saturation and 57% lightness, which reads as neutral.

What is the RGB value of #af5cc7?

rgb(175, 92, 199) — 175 red, 92 green and 199 blue out of 255, or 68.6% / 36.1% / 78% by channel.

Is #af5cc7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2089 and perceived brightness is 54%, so black text on it reaches 5.18:1.

Should I use black or white text on #af5cc7?

Black. It scores 5.18:1 against #af5cc7, versus 4.06:1 for white — AA at any size.

What is the complementary color of #af5cc7?

#74C75C sits directly opposite on the wheel. Softer options are the split-complements #AAC75C and #5CC77A, which give the same contrast with far less vibration.

What colors go well with #af5cc7?

For interface work: #F9F4FA as the surface, #E1C2EA for borders, #894B9B for secondary text, #649C30 as an accent and #51215F for hover and pressed states. For a palette, the analogous pair #7A5CC7 and #C75CAA stays calm, while #74C75C is the loudest partner.

What is #af5cc7 in CMYK for printing?

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

Is #af5cc7 warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C75CB8; nudged cooler, #875AC9.

Work with #af5cc7 in the Color Lab